| OLD | NEW |
| 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_ |
| OLD | NEW |