| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ | 5 #ifndef CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| 6 #define CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ | 6 #define CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chromeos/chromeos_export.h" |
| 9 | 10 |
| 10 namespace chromeos { | 11 namespace chromeos { |
| 11 | 12 |
| 12 class SimpleGeolocationRequest; | 13 class SimpleGeolocationRequest; |
| 13 | 14 |
| 14 // This is global hook, that allows to monitor SimpleGeolocationRequest | 15 // This is global hook, that allows to monitor SimpleGeolocationRequest |
| 15 // in tests. | 16 // in tests. |
| 16 | 17 // |
| 17 class SimpleGeolocationRequestTestMonitor { | 18 // Note: we need CHROMEOS_EXPORT for tests. |
| 19 class CHROMEOS_EXPORT SimpleGeolocationRequestTestMonitor { |
| 18 public: | 20 public: |
| 19 SimpleGeolocationRequestTestMonitor(); | 21 SimpleGeolocationRequestTestMonitor(); |
| 20 | 22 |
| 21 virtual ~SimpleGeolocationRequestTestMonitor(); | 23 virtual ~SimpleGeolocationRequestTestMonitor(); |
| 22 virtual void OnRequestCreated(SimpleGeolocationRequest* request); | 24 virtual void OnRequestCreated(SimpleGeolocationRequest* request); |
| 23 virtual void OnStart(SimpleGeolocationRequest* request); | 25 virtual void OnStart(SimpleGeolocationRequest* request); |
| 24 | 26 |
| 25 private: | 27 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(SimpleGeolocationRequestTestMonitor); | 28 DISALLOW_COPY_AND_ASSIGN(SimpleGeolocationRequestTestMonitor); |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace chromeos | 31 } // namespace chromeos |
| 30 | 32 |
| 31 #endif // CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ | 33 #endif // CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| OLD | NEW |