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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/credential_manager_impl.h" 5 #include "components/password_manager/core/browser/credential_manager_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <tuple> 10 #include <tuple>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 EXPECT_EQ(FormFetcher::State::NOT_WAITING, 374 EXPECT_EQ(FormFetcher::State::NOT_WAITING,
375 client_->pending_manager()->form_fetcher()->GetState()); 375 client_->pending_manager()->form_fetcher()->GetState());
376 376
377 autofill::PasswordForm new_form = 377 autofill::PasswordForm new_form =
378 client_->pending_manager()->pending_credentials(); 378 client_->pending_manager()->pending_credentials();
379 EXPECT_EQ(form_.username_value, new_form.username_value); 379 EXPECT_EQ(form_.username_value, new_form.username_value);
380 EXPECT_EQ(form_.display_name, new_form.display_name); 380 EXPECT_EQ(form_.display_name, new_form.display_name);
381 EXPECT_EQ(form_.password_value, new_form.password_value); 381 EXPECT_EQ(form_.password_value, new_form.password_value);
382 EXPECT_EQ(form_.origin, new_form.origin); 382 EXPECT_EQ(form_.origin, new_form.origin);
383 EXPECT_EQ(form_.signon_realm, new_form.signon_realm); 383 EXPECT_EQ(form_.signon_realm, new_form.signon_realm);
384 EXPECT_TRUE(new_form.federation_origin.unique()); 384 EXPECT_TRUE(new_form.federation_origin.opaque());
385 EXPECT_EQ(form_.icon_url, new_form.icon_url); 385 EXPECT_EQ(form_.icon_url, new_form.icon_url);
386 EXPECT_FALSE(form_.skip_zero_click); 386 EXPECT_FALSE(form_.skip_zero_click);
387 EXPECT_EQ(autofill::PasswordForm::SCHEME_HTML, new_form.scheme); 387 EXPECT_EQ(autofill::PasswordForm::SCHEME_HTML, new_form.scheme);
388 } 388 }
389 389
390 TEST_F(CredentialManagerImplTest, CredentialManagerOnStoreFederated) { 390 TEST_F(CredentialManagerImplTest, CredentialManagerOnStoreFederated) {
391 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_)) 391 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_))
392 .Times(testing::Exactly(1)); 392 .Times(testing::Exactly(1));
393 EXPECT_CALL(*client_, NotifyStorePasswordCalled()); 393 EXPECT_CALL(*client_, NotifyStorePasswordCalled());
394 394
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_)); 1577 EXPECT_CALL(*client_, PromptUserToSavePasswordPtr(_));
1578 CallStore(info, base::Bind(&RespondCallback, &called)); 1578 CallStore(info, base::Bind(&RespondCallback, &called));
1579 // Allow the PasswordFormManager to talk to the password store 1579 // Allow the PasswordFormManager to talk to the password store
1580 RunAllPendingTasks(); 1580 RunAllPendingTasks();
1581 1581
1582 ASSERT_TRUE(client_->pending_manager()); 1582 ASSERT_TRUE(client_->pending_manager());
1583 EXPECT_TRUE(client_->pending_manager()->IsBlacklisted()); 1583 EXPECT_TRUE(client_->pending_manager()->IsBlacklisted());
1584 } 1584 }
1585 1585
1586 } // namespace password_manager 1586 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698