| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 MOCK_METHOD6(SetIPParameters, void(const std::string&, | 174 MOCK_METHOD6(SetIPParameters, void(const std::string&, |
| 175 const std::string&, | 175 const std::string&, |
| 176 const std::string&, | 176 const std::string&, |
| 177 const std::string&, | 177 const std::string&, |
| 178 const std::string&, | 178 const std::string&, |
| 179 int)); | 179 int)); |
| 180 MOCK_METHOD2(RequestNetworkServiceProperties, | 180 MOCK_METHOD2(RequestNetworkServiceProperties, |
| 181 void(const std::string&, | 181 void(const std::string&, |
| 182 const NetworkServicePropertiesCallback&)); | 182 const NetworkServicePropertiesCallback&)); |
| 183 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); | 183 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); |
| 184 MOCK_METHOD2(LoadOncNetworks, void(const base::ListValue&, | 184 MOCK_METHOD3(LoadOncNetworks, |
| 185 onc::ONCSource)); | 185 void(const base::ListValue&, |
| 186 onc::ONCSource, |
| 187 const base::Callback<std::string(const std::string&)>& |
| 188 fingerprint_to_pem)); |
| 186 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); | 189 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 class MockCellularNetwork : public CellularNetwork { | 192 class MockCellularNetwork : public CellularNetwork { |
| 190 public: | 193 public: |
| 191 explicit MockCellularNetwork(const std::string& service_path); | 194 explicit MockCellularNetwork(const std::string& service_path); |
| 192 virtual ~MockCellularNetwork(); | 195 virtual ~MockCellularNetwork(); |
| 193 | 196 |
| 194 MOCK_METHOD0(StartActivation, bool(void)); | 197 MOCK_METHOD0(StartActivation, bool(void)); |
| 195 | 198 |
| 196 private: | 199 private: |
| 197 DISALLOW_COPY_AND_ASSIGN(MockCellularNetwork); | 200 DISALLOW_COPY_AND_ASSIGN(MockCellularNetwork); |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 | 203 |
| 201 } // namespace chromeos | 204 } // namespace chromeos |
| 202 | 205 |
| 203 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 206 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
| OLD | NEW |