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

Side by Side Diff: chrome/browser/chromeos/cros/mock_network_library.h

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
7
8 #include <string>
9
10 #include "chrome/browser/chromeos/cros/network_library.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace chromeos {
14
15 class MockNetworkLibrary : public NetworkLibrary {
16 public:
17 MockNetworkLibrary() {}
18 virtual ~MockNetworkLibrary() {}
19 MOCK_METHOD1(AddObserver, void(Observer*));
20 MOCK_METHOD1(RemoveObserver, void(Observer*));
21 MOCK_CONST_METHOD0(ethernet_network, const EthernetNetwork&(void));
22 MOCK_CONST_METHOD0(ethernet_connecting, bool(void));
23 MOCK_CONST_METHOD0(ethernet_connected, bool(void));
24 MOCK_CONST_METHOD0(wifi_ssid, const std::string&(void));
25 MOCK_CONST_METHOD0(wifi_connecting, bool(void));
26 MOCK_CONST_METHOD0(wifi_connected, bool(void));
27 MOCK_CONST_METHOD0(wifi_strength, int(void));
28
29 MOCK_CONST_METHOD0(cellular_name, const std::string&(void));
30 MOCK_CONST_METHOD0(cellular_connecting, bool(void));
31 MOCK_CONST_METHOD0(cellular_connected, bool(void));
32 MOCK_CONST_METHOD0(cellular_strength, int(void));
33
34 MOCK_CONST_METHOD0(Connected, bool(void));
35 MOCK_CONST_METHOD0(Connecting, bool(void));
36
37 MOCK_CONST_METHOD0(IPAddress, const std::string&(void));
38 MOCK_CONST_METHOD0(wifi_networks, const WifiNetworkVector&(void));
39 MOCK_CONST_METHOD0(cellular_networks, const CellularNetworkVector&(void));
40
41 MOCK_METHOD2(ConnectToWifiNetwork, void(WifiNetwork,
42 const string16&));
43 MOCK_METHOD2(ConnectToWifiNetwork, void(const string16&,
44 const string16&));
45 MOCK_METHOD1(ConnectToCellularNetwork, void(CellularNetwork));
46
47 MOCK_CONST_METHOD0(ethernet_available, bool(void));
48 MOCK_CONST_METHOD0(wifi_available, bool(void));
49 MOCK_CONST_METHOD0(cellular_available, bool(void));
50
51 MOCK_CONST_METHOD0(ethernet_enabled, bool(void));
52 MOCK_CONST_METHOD0(wifi_enabled, bool(void));
53 MOCK_CONST_METHOD0(cellular_enabled, bool(void));
54
55 MOCK_CONST_METHOD0(offline_mode, bool(void));
56
57 MOCK_METHOD1(EnableEthernetNetworkDevice, void(bool));
58 MOCK_METHOD1(EnableWifiNetworkDevice, void(bool));
59 MOCK_METHOD1(EnableCellularNetworkDevice, void(bool));
60 MOCK_METHOD1(EnableOfflineMode, void(bool));
61 MOCK_METHOD1(GetIPConfigs, NetworkIPConfigVector(const std::string&));
62 };
63
64 } // namespace chromeos
65
66 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_mount_library.h ('k') | chrome/browser/chromeos/cros/mock_power_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698