OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 MOCK_METHOD6(SetIPParameters, void(const std::string&, | 185 MOCK_METHOD6(SetIPParameters, void(const std::string&, |
186 const std::string&, | 186 const std::string&, |
187 const std::string&, | 187 const std::string&, |
188 const std::string&, | 188 const std::string&, |
189 const std::string&, | 189 const std::string&, |
190 int)); | 190 int)); |
191 MOCK_METHOD2(RequestNetworkServiceProperties, | 191 MOCK_METHOD2(RequestNetworkServiceProperties, |
192 void(const std::string&, | 192 void(const std::string&, |
193 const NetworkServicePropertiesCallback&)); | 193 const NetworkServicePropertiesCallback&)); |
194 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); | 194 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); |
195 MOCK_METHOD4(LoadOncNetworks, bool(const std::string&, | 195 MOCK_METHOD2(LoadOncNetworks, void(const base::ListValue&, |
196 const std::string&, | 196 onc::ONCSource)); |
197 onc::ONCSource, | |
198 net::CertificateList*)); | |
199 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); | 197 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); |
200 }; | 198 }; |
201 | 199 |
202 class MockCellularNetwork : public CellularNetwork { | 200 class MockCellularNetwork : public CellularNetwork { |
203 public: | 201 public: |
204 explicit MockCellularNetwork(const std::string& service_path); | 202 explicit MockCellularNetwork(const std::string& service_path); |
205 virtual ~MockCellularNetwork(); | 203 virtual ~MockCellularNetwork(); |
206 | 204 |
207 MOCK_METHOD0(StartActivation, bool(void)); | 205 MOCK_METHOD0(StartActivation, bool(void)); |
208 | 206 |
209 private: | 207 private: |
210 DISALLOW_COPY_AND_ASSIGN(MockCellularNetwork); | 208 DISALLOW_COPY_AND_ASSIGN(MockCellularNetwork); |
211 }; | 209 }; |
212 | 210 |
213 | 211 |
214 } // namespace chromeos | 212 } // namespace chromeos |
215 | 213 |
216 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 214 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
OLD | NEW |