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/wifi_sync/wifi_config_delegate_chromeos.h" | 5 #include "components/wifi_sync/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 EXPECT_FALSE(create_configuration_called()); | 217 EXPECT_FALSE(create_configuration_called()); |
218 } | 218 } |
219 | 219 |
220 TEST_F(WifiConfigDelegateChromeOsTest, | 220 TEST_F(WifiConfigDelegateChromeOsTest, |
221 AddToLocalNetworksCreateConfigurationFailure) { | 221 AddToLocalNetworksCreateConfigurationFailure) { |
222 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); | 222 AddToLocalNetworks(MakeCredential(kSsid, SECURITY_CLASS_NONE, "")); |
223 EXPECT_TRUE(create_configuration_called()); | 223 EXPECT_TRUE(create_configuration_called()); |
224 if (!create_configuration_error_callback().is_null()) { | 224 if (!create_configuration_error_callback().is_null()) { |
225 create_configuration_error_callback().Run( | 225 create_configuration_error_callback().Run( |
226 "Config.CreateConfiguration Failed", | 226 "Config.CreateConfiguration Failed", |
227 base::WrapUnique(new base::DictionaryValue())); | 227 base::MakeUnique<base::DictionaryValue>()); |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 } // namespace wifi_sync | 231 } // namespace wifi_sync |
OLD | NEW |