Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: chromeos/geolocation/simple_geolocation_request_test_monitor.h

Issue 1819173002: SimpleGeolocation should support sending WiFi AP data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chromeos/geolocation/simple_geolocation_request.cc ('k') | chromeos/geolocation/simple_geolocation_request_test_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698