| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| 6 #define CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace chromeos { |
| 11 |
| 12 class SimpleGeolocationRequest; |
| 13 |
| 14 // This is global hook, that allows to monitor SimpleGeolocationRequest |
| 15 // in tests. |
| 16 |
| 17 class SimpleGeolocationRequestTestMonitor { |
| 18 public: |
| 19 SimpleGeolocationRequestTestMonitor(); |
| 20 |
| 21 virtual ~SimpleGeolocationRequestTestMonitor(); |
| 22 virtual void OnRequestCreated(SimpleGeolocationRequest* request); |
| 23 virtual void OnStart(SimpleGeolocationRequest* request); |
| 24 |
| 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(SimpleGeolocationRequestTestMonitor); |
| 27 }; |
| 28 |
| 29 } // namespace chromeos |
| 30 |
| 31 #endif // CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_REQUEST_TEST_MONITOR_H_ |
| OLD | NEW |