Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/webcrypto/algorithms/sha.cc ('k') | components/wifi_sync/wifi_credential.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/webcrypto/algorithms/sha.cc ('k') | components/wifi_sync/wifi_credential.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698