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

Unified Diff: src/service_manager_mock.h

Issue 6395007: cashew: gmock integration (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 9 years, 11 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
« no previous file with comments | « src/service_manager_impl.cc ('k') | src/service_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/service_manager_mock.h
diff --git a/src/service_manager_mock.h b/src/service_manager_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..32f31d54415e160fd18b5026fd1b6e306ec0e6d0
--- /dev/null
+++ b/src/service_manager_mock.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2010, 2011 The Chromium OS 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 SRC_SERVICE_MANAGER_MOCK_H_
+#define SRC_SERVICE_MANAGER_MOCK_H_
+
+#include <gmock/gmock.h>
+
+#include <string>
+
+#include "src/service_manager.h"
+
+namespace cashew {
+
+class ServiceManagerMock : public ServiceManager {
+ public:
+ MOCK_CONST_METHOD1(GetService,
+ const Service*(const std::string& service_path));
+ MOCK_METHOD1(SetCashewServer, void(CashewServer *cashew_server));
+ MOCK_CONST_METHOD0(GetDefaultTechnology, Service::Type());
+ MOCK_CONST_METHOD0(GetConnectivityState,
+ ServiceManager::ConnectivityState());
+ MOCK_METHOD1(EmitDataPlansUpdate, void(const Service& service));
+};
+
+} // namespace cashew
+
+#endif // SRC_SERVICE_MANAGER_MOCK_H_
« no previous file with comments | « src/service_manager_impl.cc ('k') | src/service_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698