blob: cd4c58939ca17ac077f59491b0f4e0200300026e [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_
#define CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_
#include "base/component_export.h"
#include "base/macros.h"
namespace chromeos {
class SimpleGeolocationRequest;
// This is global hook, that allows to monitor SimpleGeolocationRequest
// in tests.
//
// Note: we need COMPONENT_EXPORT(CHROMEOS_GEOLOCATION) for tests.
class COMPONENT_EXPORT(CHROMEOS_GEOLOCATION)
SimpleGeolocationRequestTestMonitor {
public:
SimpleGeolocationRequestTestMonitor();
virtual ~SimpleGeolocationRequestTestMonitor();
virtual void OnRequestCreated(SimpleGeolocationRequest* request);
virtual void OnStart(SimpleGeolocationRequest* request);
private:
DISALLOW_COPY_AND_ASSIGN(SimpleGeolocationRequestTestMonitor);
};
} // namespace chromeos
#endif // CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_