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

Side by Side Diff: src/device_mock.h

Issue 6250171: cashew: reset local counter on plan transition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: ers review comments 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/procfs_byte_counter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SRC_DEVICE_MOCK_H_ 5 #ifndef SRC_DEVICE_MOCK_H_
6 #define SRC_DEVICE_MOCK_H_ 6 #define SRC_DEVICE_MOCK_H_
7 7
8 #include <gmock/gmock.h> 8 #include <gmock/gmock.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "src/device.h" 12 #include "src/device.h"
13 13
14 namespace cashew { 14 namespace cashew {
15 15
16 class DeviceMock : public Device { 16 class DeviceMock : public Device {
17 public: 17 public:
18 MOCK_CONST_METHOD0(GetPath, const DBus::Path&()); 18 MOCK_CONST_METHOD0(GetPath, const DBus::Path&());
19 MOCK_CONST_METHOD0(GetType, Device::Type()); 19 MOCK_CONST_METHOD0(GetType, Device::Type());
20 MOCK_CONST_METHOD0(GetCarrier, const std::string&()); 20 MOCK_CONST_METHOD0(GetCarrier, const std::string&());
21 MOCK_CONST_METHOD0(GetInterface, const std::string&()); 21 MOCK_CONST_METHOD0(GetInterface, const std::string&());
22 MOCK_METHOD0(StartByteCounter, bool()); 22 MOCK_METHOD0(StartByteCounter, bool());
23 MOCK_METHOD0(StopByteCounter, void()); 23 MOCK_METHOD0(StopByteCounter, void());
24 MOCK_CONST_METHOD0(ByteCounterRunning, bool()); 24 MOCK_CONST_METHOD0(ByteCounterRunning, bool());
25 MOCK_METHOD2(ResetByteCounter, void(uint64 rx_bytes, uint64 tx_bytes));
25 }; 26 };
26 27
27 } // namespace cashew 28 } // namespace cashew
28 29
29 #endif // SRC_DEVICE_MOCK_H_ 30 #endif // SRC_DEVICE_MOCK_H_
OLDNEW
« no previous file with comments | « src/device_impl.cc ('k') | src/procfs_byte_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698