| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 MOCK_METHOD5(ChangePin, | 81 MOCK_METHOD5(ChangePin, |
| 82 void(const std::string& device_path, | 82 void(const std::string& device_path, |
| 83 const std::string& old_pin, | 83 const std::string& old_pin, |
| 84 const std::string& new_pin, | 84 const std::string& new_pin, |
| 85 const base::Closure& callback, | 85 const base::Closure& callback, |
| 86 const network_handler::ErrorCallback& error_callback)); | 86 const network_handler::ErrorCallback& error_callback)); |
| 87 | 87 |
| 88 MOCK_METHOD1(SetCellularAllowRoaming, void(bool allow_roaming)); | 88 MOCK_METHOD1(SetCellularAllowRoaming, void(bool allow_roaming)); |
| 89 | 89 |
| 90 MOCK_METHOD1(SetMACAddressRandomizationEnabled, void(bool enabled)); |
| 91 |
| 90 MOCK_METHOD4(SetWifiTDLSEnabled, | 92 MOCK_METHOD4(SetWifiTDLSEnabled, |
| 91 void(const std::string& ip_or_mac_address, | 93 void(const std::string& ip_or_mac_address, |
| 92 bool enabled, | 94 bool enabled, |
| 93 const network_handler::StringResultCallback& callback, | 95 const network_handler::StringResultCallback& callback, |
| 94 const network_handler::ErrorCallback& error_callback)); | 96 const network_handler::ErrorCallback& error_callback)); |
| 95 | 97 |
| 96 MOCK_METHOD3(GetWifiTDLSStatus, | 98 MOCK_METHOD3(GetWifiTDLSStatus, |
| 97 void(const std::string& ip_or_mac_address, | 99 void(const std::string& ip_or_mac_address, |
| 98 const network_handler::StringResultCallback& callback, | 100 const network_handler::StringResultCallback& callback, |
| 99 const network_handler::ErrorCallback& error_callback)); | 101 const network_handler::ErrorCallback& error_callback)); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 112 void(const base::Closure& callback, | 114 void(const base::Closure& callback, |
| 113 const network_handler::ErrorCallback& error_callback)); | 115 const network_handler::ErrorCallback& error_callback)); |
| 114 | 116 |
| 115 private: | 117 private: |
| 116 DISALLOW_COPY_AND_ASSIGN(MockNetworkDeviceHandler); | 118 DISALLOW_COPY_AND_ASSIGN(MockNetworkDeviceHandler); |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace chromeos | 121 } // namespace chromeos |
| 120 | 122 |
| 121 #endif // CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ | 123 #endif // CHROMEOS_NETWORK_MOCK_NETWORK_DEVICE_HANDLER_H_ |
| OLD | NEW |