| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/sync_wifi/wifi_config_delegate_chromeos.h" | 5 #include "components/sync_wifi/wifi_config_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 NOTIMPLEMENTED(); | 102 NOTIMPLEMENTED(); |
| 103 return nullptr; | 103 return nullptr; |
| 104 } | 104 } |
| 105 const base::DictionaryValue* GetGlobalConfigFromPolicy( | 105 const base::DictionaryValue* GetGlobalConfigFromPolicy( |
| 106 const std::string& userhash) const override { | 106 const std::string& userhash) const override { |
| 107 NOTIMPLEMENTED(); | 107 NOTIMPLEMENTED(); |
| 108 return nullptr; | 108 return nullptr; |
| 109 } | 109 } |
| 110 const base::DictionaryValue* FindPolicyByGuidAndProfile( | 110 const base::DictionaryValue* FindPolicyByGuidAndProfile( |
| 111 const std::string& guid, | 111 const std::string& guid, |
| 112 const std::string& profile_path) const override { | 112 const std::string& profile_path, |
| 113 ::onc::ONCSource* onc_source) const override { |
| 113 NOTIMPLEMENTED(); | 114 NOTIMPLEMENTED(); |
| 114 return nullptr; | 115 return nullptr; |
| 115 } | 116 } |
| 116 | 117 |
| 117 bool create_configuration_called() const { | 118 bool create_configuration_called() const { |
| 118 return create_configuration_called_; | 119 return create_configuration_called_; |
| 119 } | 120 } |
| 120 const ServiceResultCallback& create_configuration_success_callback() const { | 121 const ServiceResultCallback& create_configuration_success_callback() const { |
| 121 return create_configuration_success_callback_; | 122 return create_configuration_success_callback_; |
| 122 } | 123 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); | 221 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); |
| 221 EXPECT_TRUE(create_configuration_called()); | 222 EXPECT_TRUE(create_configuration_called()); |
| 222 if (!create_configuration_error_callback().is_null()) { | 223 if (!create_configuration_error_callback().is_null()) { |
| 223 create_configuration_error_callback().Run( | 224 create_configuration_error_callback().Run( |
| 224 "Config.CreateConfiguration Failed", | 225 "Config.CreateConfiguration Failed", |
| 225 base::MakeUnique<base::DictionaryValue>()); | 226 base::MakeUnique<base::DictionaryValue>()); |
| 226 } | 227 } |
| 227 } | 228 } |
| 228 | 229 |
| 229 } // namespace sync_wifi | 230 } // namespace sync_wifi |
| OLD | NEW |