| Index: chromeos/geolocation/simple_geolocation_request_test_monitor.h
|
| diff --git a/chromeos/geolocation/simple_geolocation_request_test_monitor.h b/chromeos/geolocation/simple_geolocation_request_test_monitor.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2213db225818ec06eecbfa2b99b053bba379b6a3
|
| --- /dev/null
|
| +++ b/chromeos/geolocation/simple_geolocation_request_test_monitor.h
|
| @@ -0,0 +1,31 @@
|
| +// 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/macros.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +class SimpleGeolocationRequest;
|
| +
|
| +// This is global hook, that allows to monitor SimpleGeolocationRequest
|
| +// in tests.
|
| +
|
| +class 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_
|
|
|