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

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

Issue 1031253003: Move credential_manager_types.h to components/password_manager/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_state.cc ('k') | chrome/browser/ui/passwords/manage_passwords_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698