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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_state_unittest.cc

Issue 2127533003: Remove PasswordForm::ssl_valid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust //ios Created 4 years, 5 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 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 "chrome/browser/ui/passwords/manage_passwords_state.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 std::unique_ptr<password_manager::PasswordFormManager> 112 std::unique_ptr<password_manager::PasswordFormManager>
113 ManagePasswordsStateTest::CreateFormManagerWithFederation() { 113 ManagePasswordsStateTest::CreateFormManagerWithFederation() {
114 return CreateFormManagerInternal(true); 114 return CreateFormManagerInternal(true);
115 } 115 }
116 116
117 std::unique_ptr<password_manager::PasswordFormManager> 117 std::unique_ptr<password_manager::PasswordFormManager>
118 ManagePasswordsStateTest::CreateFormManagerInternal(bool include_federated) { 118 ManagePasswordsStateTest::CreateFormManagerInternal(bool include_federated) {
119 std::unique_ptr<password_manager::PasswordFormManager> test_form_manager( 119 std::unique_ptr<password_manager::PasswordFormManager> test_form_manager(
120 new password_manager::PasswordFormManager( 120 new password_manager::PasswordFormManager(
121 &password_manager_, &stub_client_, driver_.AsWeakPtr(), 121 &password_manager_, &stub_client_, driver_.AsWeakPtr(),
122 test_local_form(), false, 122 test_local_form(),
123 base::WrapUnique(new password_manager::StubFormSaver))); 123 base::WrapUnique(new password_manager::StubFormSaver)));
124 test_form_manager->SimulateFetchMatchingLoginsFromPasswordStore(); 124 test_form_manager->SimulateFetchMatchingLoginsFromPasswordStore();
125 if (include_federated) { 125 if (include_federated) {
126 test_stored_forms_.push_back( 126 test_stored_forms_.push_back(
127 new autofill::PasswordForm(test_local_federated_form())); 127 new autofill::PasswordForm(test_local_federated_form()));
128 } 128 }
129 test_form_manager->OnGetPasswordStoreResults(std::move(test_stored_forms_)); 129 test_form_manager->OnGetPasswordStoreResults(std::move(test_stored_forms_));
130 EXPECT_EQ(include_federated ? 1u : 0u, 130 EXPECT_EQ(include_federated ? 1u : 0u,
131 test_form_manager->federated_matches().size()); 131 test_form_manager->federated_matches().size());
132 if (include_federated) { 132 if (include_federated) {
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 passwords_data().OnRequestCredentials(ScopedVector<autofill::PasswordForm>(), 678 passwords_data().OnRequestCredentials(ScopedVector<autofill::PasswordForm>(),
679 ScopedVector<autofill::PasswordForm>(), 679 ScopedVector<autofill::PasswordForm>(),
680 test_local_form().origin); 680 test_local_form().origin);
681 passwords_data().set_credentials_callback(base::Bind( 681 passwords_data().set_credentials_callback(base::Bind(
682 &ManagePasswordsStateTest::CredentialCallback, base::Unretained(this))); 682 &ManagePasswordsStateTest::CredentialCallback, base::Unretained(this)));
683 EXPECT_CALL(*this, CredentialCallback(&test_local_federated_form())); 683 EXPECT_CALL(*this, CredentialCallback(&test_local_federated_form()));
684 passwords_data().ChooseCredential(&test_local_federated_form()); 684 passwords_data().ChooseCredential(&test_local_federated_form());
685 } 685 }
686 686
687 } // namespace 687 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager_browsertest.cc ('k') | chrome/browser/ui/passwords/manage_passwords_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698