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

Unified Diff: src/device_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/device_impl.cc ('k') | src/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/device_mock.h
diff --git a/src/device_mock.h b/src/device_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..d55fbf32113d999f03651ffab487e83966219bc6
--- /dev/null
+++ b/src/device_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_DEVICE_MOCK_H_
+#define SRC_DEVICE_MOCK_H_
+
+#include <gmock/gmock.h>
+
+#include <string>
+
+#include "src/device.h"
+
+namespace cashew {
+
+class DeviceMock : public Device {
+ public:
+ MOCK_CONST_METHOD0(GetPath, const DBus::Path&());
+ MOCK_CONST_METHOD0(GetType, Device::Type());
+ MOCK_CONST_METHOD0(GetCarrier, const std::string&());
+ MOCK_CONST_METHOD0(GetInterface, const std::string&());
+ MOCK_METHOD0(StartByteCounter, bool());
+ MOCK_METHOD0(StopByteCounter, void());
+ MOCK_CONST_METHOD0(ByteCounterRunning, bool());
+};
+
+} // namespace cashew
+
+#endif // SRC_DEVICE_MOCK_H_
« no previous file with comments | « src/device_impl.cc ('k') | src/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698