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

Side by Side Diff: components/password_manager/core/browser/password_manager_test_utils.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/password_manager/core/browser/password_manager_test_utils.h " 5 #include "components/password_manager/core/browser/password_manager_test_utils.h "
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 if (form_data.password_value) { 49 if (form_data.password_value) {
50 if (wcscmp(form_data.password_value, kTestingFederatedLoginMarker) == 0) 50 if (wcscmp(form_data.password_value, kTestingFederatedLoginMarker) == 0)
51 form->federation_url = GURL(kTestingFederationUrlSpec); 51 form->federation_url = GURL(kTestingFederationUrlSpec);
52 else 52 else
53 form->password_value = base::WideToUTF16(form_data.password_value); 53 form->password_value = base::WideToUTF16(form_data.password_value);
54 } 54 }
55 } else { 55 } else {
56 form->blacklisted_by_user = true; 56 form->blacklisted_by_user = true;
57 } 57 }
58 form->icon_url = GURL(kTestingIconUrlSpec); 58 form->icon_url = GURL(kTestingIconUrlSpec);
59 return form.Pass(); 59 return form;
60 } 60 }
61 61
62 bool ContainsEqualPasswordFormsUnordered( 62 bool ContainsEqualPasswordFormsUnordered(
63 const std::vector<PasswordForm*>& expectations, 63 const std::vector<PasswordForm*>& expectations,
64 const std::vector<PasswordForm*>& actual_values, 64 const std::vector<PasswordForm*>& actual_values,
65 std::ostream* mismatch_output) { 65 std::ostream* mismatch_output) {
66 std::vector<PasswordForm*> remaining_expectations(expectations.begin(), 66 std::vector<PasswordForm*> remaining_expectations(expectations.begin(),
67 expectations.end()); 67 expectations.end());
68 bool had_mismatched_actual_form = false; 68 bool had_mismatched_actual_form = false;
69 for (const PasswordForm* actual : actual_values) { 69 for (const PasswordForm* actual : actual_values) {
(...skipping 23 matching lines...) Expand all
93 } 93 }
94 94
95 return !had_mismatched_actual_form && remaining_expectations.empty(); 95 return !had_mismatched_actual_form && remaining_expectations.empty();
96 } 96 }
97 97
98 MockPasswordStoreObserver::MockPasswordStoreObserver() {} 98 MockPasswordStoreObserver::MockPasswordStoreObserver() {}
99 99
100 MockPasswordStoreObserver::~MockPasswordStoreObserver() {} 100 MockPasswordStoreObserver::~MockPasswordStoreObserver() {}
101 101
102 } // namespace password_manager 102 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698