| 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_SERVICE_MANAGER_MOCK_H_ | 5 #ifndef SRC_SERVICE_MANAGER_MOCK_H_ |
| 6 #define SRC_SERVICE_MANAGER_MOCK_H_ | 6 #define SRC_SERVICE_MANAGER_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/service_manager.h" | 12 #include "src/service_manager.h" |
| 13 | 13 |
| 14 namespace cashew { | 14 namespace cashew { |
| 15 | 15 |
| 16 class ServiceManagerMock : public ServiceManager { | 16 class ServiceManagerMock : public ServiceManager { |
| 17 public: | 17 public: |
| 18 MOCK_CONST_METHOD1(GetService, | 18 MOCK_CONST_METHOD1(GetService, |
| 19 const Service*(const std::string& service_path)); | 19 const Service*(const std::string& service_path)); |
| 20 MOCK_METHOD1(SetCashewServer, void(CashewServer *cashew_server)); | 20 MOCK_METHOD1(SetCashewServer, void(CashewServer *cashew_server)); |
| 21 MOCK_CONST_METHOD0(GetDefaultTechnology, Service::Type()); | 21 MOCK_CONST_METHOD0(GetDefaultTechnology, Service::Type()); |
| 22 MOCK_CONST_METHOD0(GetConnectivityState, | 22 MOCK_CONST_METHOD0(GetConnectivityState, |
| 23 ServiceManager::ConnectivityState()); | 23 ServiceManager::ConnectivityState()); |
| 24 MOCK_METHOD1(EmitDataPlansUpdate, void(const Service& service)); | 24 MOCK_METHOD1(EmitDataPlansUpdate, void(const Service& service)); |
| 25 MOCK_METHOD2(OnDataPlanInactive, |
| 26 void(const Service& service, const DataPlan& plan)); |
| 25 }; | 27 }; |
| 26 | 28 |
| 27 } // namespace cashew | 29 } // namespace cashew |
| 28 | 30 |
| 29 #endif // SRC_SERVICE_MANAGER_MOCK_H_ | 31 #endif // SRC_SERVICE_MANAGER_MOCK_H_ |
| OLD | NEW |