| OLD | NEW |
| (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_SERVICE_MOCK_H_ |
| 6 #define SRC_SERVICE_MOCK_H_ |
| 7 |
| 8 #include <gmock/gmock.h> |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "src/service.h" |
| 13 |
| 14 namespace cashew { |
| 15 |
| 16 class ServiceMock : public Service { |
| 17 public: |
| 18 MOCK_CONST_METHOD0(GetPath, const DBus::Path&()); |
| 19 MOCK_CONST_METHOD0(GetState, Service::State()); |
| 20 MOCK_CONST_METHOD0(GetType, Service::Type()); |
| 21 MOCK_CONST_METHOD0(GetDevice, Device*()); |
| 22 MOCK_CONST_METHOD0(GetDBusDataPlans, DBusDataPlanList()); |
| 23 MOCK_CONST_METHOD0(IsDefaultService, bool()); |
| 24 MOCK_CONST_METHOD0(GetConnectivityState, Service::ConnectivityState()); |
| 25 MOCK_METHOD1(OnCarrierUpdate, void(const std::string& carrier)); |
| 26 MOCK_METHOD2(OnByteCounterUpdate, void(uint64 rx_bytes, uint64 tx_bytes)); |
| 27 MOCK_METHOD1(OnDefaultServiceUpdate, void(bool is_default_service)); |
| 28 MOCK_METHOD0(OnFlimflamOnline, void()); |
| 29 MOCK_METHOD0(OnFlimflamOffline, void()); |
| 30 }; |
| 31 |
| 32 } // namespace cashew |
| 33 |
| 34 #endif // SRC_SERVICE_MOCK_H_ |
| OLD | NEW |