| OLD | NEW |
| 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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/password_manager/content/common/credential_manager_types.h" | |
| 9 #include "components/password_manager/core/browser/password_form_manager.h" | 8 #include "components/password_manager/core/browser/password_form_manager.h" |
| 10 #include "components/password_manager/core/browser/stub_password_manager_client.
h" | 9 #include "components/password_manager/core/browser/stub_password_manager_client.
h" |
| 10 #include "components/password_manager/core/common/credential_manager_types.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using ::testing::_; | 14 using ::testing::_; |
| 15 using ::testing::Contains; | 15 using ::testing::Contains; |
| 16 using ::testing::ElementsAre; | 16 using ::testing::ElementsAre; |
| 17 using ::testing::IsEmpty; | 17 using ::testing::IsEmpty; |
| 18 using ::testing::Not; | 18 using ::testing::Not; |
| 19 using ::testing::Pointee; | 19 using ::testing::Pointee; |
| 20 using ::testing::UnorderedElementsAre; | 20 using ::testing::UnorderedElementsAre; |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 password_manager::PasswordStoreChange::REMOVE, blacklisted)); | 603 password_manager::PasswordStoreChange::REMOVE, blacklisted)); |
| 604 passwords_data().ProcessLoginsChanged(list); | 604 passwords_data().ProcessLoginsChanged(list); |
| 605 EXPECT_THAT(passwords_data().GetCurrentForms(), | 605 EXPECT_THAT(passwords_data().GetCurrentForms(), |
| 606 ElementsAre(Pointee(test_local_form()))); | 606 ElementsAre(Pointee(test_local_form()))); |
| 607 EXPECT_THAT(passwords_data().federated_credentials_forms(), IsEmpty()); | 607 EXPECT_THAT(passwords_data().federated_credentials_forms(), IsEmpty()); |
| 608 EXPECT_EQ(password_manager::ui::MANAGE_STATE, passwords_data().state()); | 608 EXPECT_EQ(password_manager::ui::MANAGE_STATE, passwords_data().state()); |
| 609 EXPECT_EQ(blacklisted.origin, passwords_data().origin()); | 609 EXPECT_EQ(blacklisted.origin, passwords_data().origin()); |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace | 612 } // namespace |
| OLD | NEW |