summaryrefslogtreecommitdiffstats
path: root/chromeos/geolocation/simple_geolocation_request_test_monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/geolocation/simple_geolocation_request_test_monitor.h')
-rw-r--r--chromeos/geolocation/simple_geolocation_request_test_monitor.h31
1 files changed, 31 insertions, 0 deletions
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 0000000..2213db2
--- /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_