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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/device_impl.cc ('k') | src/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SRC_DEVICE_MOCK_H_
6 #define SRC_DEVICE_MOCK_H_
7
8 #include <gmock/gmock.h>
9
10 #include <string>
11
12 #include "src/device.h"
13
14 namespace cashew {
15
16 class DeviceMock : public Device {
17 public:
18 MOCK_CONST_METHOD0(GetPath, const DBus::Path&());
19 MOCK_CONST_METHOD0(GetType, Device::Type());
20 MOCK_CONST_METHOD0(GetCarrier, const std::string&());
21 MOCK_CONST_METHOD0(GetInterface, const std::string&());
22 MOCK_METHOD0(StartByteCounter, bool());
23 MOCK_METHOD0(StopByteCounter, void());
24 MOCK_CONST_METHOD0(ByteCounterRunning, bool());
25 };
26
27 } // namespace cashew
28
29 #endif // SRC_DEVICE_MOCK_H_
OLDNEW
« 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