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

Side by Side Diff: chrome/browser/password_manager/password_store_x_unittest.cc

Issue 1083083007: Substitued pattern push_back(ptr.release()) with push_back(ptr.Pass()) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: release Pass substitution Created 5 years, 8 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
OLDNEW
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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 origin.c_str(), 249 origin.c_str(),
250 action.c_str(), 250 action.c_str(),
251 L"submit_element", 251 L"submit_element",
252 L"username_element", 252 L"username_element",
253 L"password_element", 253 L"password_element",
254 autofillable ? L"username_value" : nullptr, 254 autofillable ? L"username_value" : nullptr,
255 autofillable ? L"password_value" : nullptr, 255 autofillable ? L"password_value" : nullptr,
256 autofillable, 256 autofillable,
257 false, 257 false,
258 static_cast<double>(i + 1)}; 258 static_cast<double>(i + 1)};
259 forms->push_back(CreatePasswordFormFromDataForTesting(data).release()); 259 forms->push_back(CreatePasswordFormFromDataForTesting(data).Pass());
260 } 260 }
261 } 261 }
262 262
263 PasswordStoreChangeList AddChangeForForm(const PasswordForm& form) { 263 PasswordStoreChangeList AddChangeForForm(const PasswordForm& form) {
264 return PasswordStoreChangeList( 264 return PasswordStoreChangeList(
265 1, PasswordStoreChange(PasswordStoreChange::ADD, form)); 265 1, PasswordStoreChange(PasswordStoreChange::ADD, form));
266 } 266 }
267 267
268 } // anonymous namespace 268 } // anonymous namespace
269 269
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 482
483 INSTANTIATE_TEST_CASE_P(NoBackend, 483 INSTANTIATE_TEST_CASE_P(NoBackend,
484 PasswordStoreXTest, 484 PasswordStoreXTest,
485 testing::Values(NO_BACKEND)); 485 testing::Values(NO_BACKEND));
486 INSTANTIATE_TEST_CASE_P(FailingBackend, 486 INSTANTIATE_TEST_CASE_P(FailingBackend,
487 PasswordStoreXTest, 487 PasswordStoreXTest,
488 testing::Values(FAILING_BACKEND)); 488 testing::Values(FAILING_BACKEND));
489 INSTANTIATE_TEST_CASE_P(WorkingBackend, 489 INSTANTIATE_TEST_CASE_P(WorkingBackend,
490 PasswordStoreXTest, 490 PasswordStoreXTest,
491 testing::Values(WORKING_BACKEND)); 491 testing::Values(WORKING_BACKEND));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698