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

Side by Side Diff: src/service_manager_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/service_manager_impl.cc ('k') | no next file » | 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_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_
OLDNEW
« no previous file with comments | « src/service_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698