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

Unified Diff: blimp/client/feature/mock_geolocation_feature_delegate.h

Issue 2161223003: Adds GeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@engine_feature_prep
Patch Set: Addresses kmarshall's #8 comments and adds unittest Created 4 years, 5 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: blimp/client/feature/mock_geolocation_feature_delegate.h
diff --git a/blimp/client/feature/mock_geolocation_feature_delegate.h b/blimp/client/feature/mock_geolocation_feature_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd602d93d96f02004c4d7868aed8265b841385fb
--- /dev/null
+++ b/blimp/client/feature/mock_geolocation_feature_delegate.h
@@ -0,0 +1,32 @@
+// 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_CLIENT_FEATURE_MOCK_GEOLOCATION_FEATURE_DELEGATE_H_
+#define BLIMP_CLIENT_FEATURE_MOCK_GEOLOCATION_FEATURE_DELEGATE_H_
+
+#include "blimp/client/feature/geolocation_feature.h"
+#include "blimp/common/proto/geolocation.pb.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace blimp {
+namespace client {
+
+class MockGeolocationFeatureDelegate
+ : public GeolocationFeature::GeolocationFeatureDelegate {
+ public:
+ MockGeolocationFeatureDelegate();
+ ~MockGeolocationFeatureDelegate();
+
+ MOCK_METHOD1(OnGeolocationInterestUpdate,
+ void(GeolocationSetInterestLevelMessage::Level level));
+ MOCK_METHOD0(OnRequestRefresh, void());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockGeolocationFeatureDelegate);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_FEATURE_MOCK_GEOLOCATION_FEATURE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698