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

Side by Side Diff: src/service_mock.h

Issue 6395007: cashew: gmock integration (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: 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_mock.h ('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
(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_
OLDNEW
« no previous file with comments | « src/service_manager_mock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698