OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 5 #include <string> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/histogram_samples.h" | 10 #include "base/metrics/histogram_samples.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/test/base/ui_test_utils.h" | 33 #include "chrome/test/base/ui_test_utils.h" |
34 #include "components/autofill/content/common/autofill_messages.h" | 34 #include "components/autofill/content/common/autofill_messages.h" |
35 #include "components/autofill/core/browser/autofill_test_utils.h" | 35 #include "components/autofill/core/browser/autofill_test_utils.h" |
36 #include "components/autofill/core/browser/test_autofill_client.h" | 36 #include "components/autofill/core/browser/test_autofill_client.h" |
37 #include "components/autofill/core/common/password_form.h" | 37 #include "components/autofill/core/common/password_form.h" |
38 #include "components/password_manager/content/browser/content_password_manager_d
river.h" | 38 #include "components/password_manager/content/browser/content_password_manager_d
river.h" |
39 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" | 39 #include "components/password_manager/content/browser/content_password_manager_d
river_factory.h" |
40 #include "components/password_manager/core/browser/login_model.h" | 40 #include "components/password_manager/core/browser/login_model.h" |
41 #include "components/password_manager/core/browser/test_password_store.h" | 41 #include "components/password_manager/core/browser/test_password_store.h" |
42 #include "components/password_manager/core/common/password_manager_features.h" | 42 #include "components/password_manager/core/common/password_manager_features.h" |
43 #include "components/password_manager/core/common/password_manager_switches.h" | |
44 #include "components/version_info/version_info.h" | 43 #include "components/version_info/version_info.h" |
45 #include "content/public/browser/navigation_controller.h" | 44 #include "content/public/browser/navigation_controller.h" |
46 #include "content/public/browser/notification_service.h" | 45 #include "content/public/browser/notification_service.h" |
47 #include "content/public/browser/render_frame_host.h" | 46 #include "content/public/browser/render_frame_host.h" |
48 #include "content/public/browser/render_process_host.h" | 47 #include "content/public/browser/render_process_host.h" |
49 #include "content/public/browser/render_view_host.h" | 48 #include "content/public/browser/render_view_host.h" |
50 #include "content/public/browser/web_contents.h" | 49 #include "content/public/browser/web_contents.h" |
51 #include "content/public/browser/web_contents_observer.h" | 50 #include "content/public/browser/web_contents_observer.h" |
52 #include "content/public/common/content_switches.h" | 51 #include "content/public/common/content_switches.h" |
53 #include "content/public/test/browser_test_utils.h" | 52 #include "content/public/test/browser_test_utils.h" |
(...skipping 2886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2940 ASSERT_EQ(1u, passwords_map.size()); | 2939 ASSERT_EQ(1u, passwords_map.size()); |
2941 auto& passwords_vector = passwords_map.begin()->second; | 2940 auto& passwords_vector = passwords_map.begin()->second; |
2942 ASSERT_EQ(1u, passwords_vector.size()); | 2941 ASSERT_EQ(1u, passwords_vector.size()); |
2943 const autofill::PasswordForm& form = passwords_vector[0]; | 2942 const autofill::PasswordForm& form = passwords_vector[0]; |
2944 EXPECT_EQ(base::ASCIIToUTF16("user"), form.username_value); | 2943 EXPECT_EQ(base::ASCIIToUTF16("user"), form.username_value); |
2945 EXPECT_EQ(base::ASCIIToUTF16("password"), form.password_value); | 2944 EXPECT_EQ(base::ASCIIToUTF16("password"), form.password_value); |
2946 EXPECT_FALSE(form.skip_zero_click); | 2945 EXPECT_FALSE(form.skip_zero_click); |
2947 } | 2946 } |
2948 | 2947 |
2949 } // namespace password_manager | 2948 } // namespace password_manager |
OLD | NEW |