Index: blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h |
diff --git a/blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h b/blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8bc92be3abf737523f63066e49d62536bd4b1571 |
--- /dev/null |
+++ b/blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h |
@@ -0,0 +1,33 @@ |
+// 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 BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGATE_H_ |
+#define BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGATE_H_ |
+ |
+#include "blimp/engine/feature/geolocation/blimp_location_provider.h" |
+#include "testing/gmock/include/gmock/gmock.h" |
+ |
+namespace blimp { |
+namespace engine { |
+ |
+class MockBlimpLocationProviderDelegate |
+ : public BlimpLocationProvider::Delegate { |
+ public: |
+ MockBlimpLocationProviderDelegate(); |
+ ~MockBlimpLocationProviderDelegate(); |
+ |
+ MOCK_METHOD1(RequestAccuracy, |
+ void(GeolocationSetInterestLevelMessage::Level level)); |
+ MOCK_METHOD0(RequestRefresh, void()); |
+ MOCK_METHOD1( |
+ SetUpdateCallback, |
+ void(const base::Callback<void(const content::Geoposition&)>& callback)); |
+ |
+ base::WeakPtrFactory<MockBlimpLocationProviderDelegate> weak_factory_; |
Kevin M
2016/07/19 16:01:42
Move this into the test
CJ
2016/07/19 20:35:58
Little confused about this suggestion. Why would o
|
+}; |
+ |
+} // namespace engine |
+} // namespace blimp |
+ |
+#endif // BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGATE_H_ |