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 "components/password_manager/content/browser/content_password_manager_d
river.h" | 5 #include "components/password_manager/content/browser/content_password_manager_d
river.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "components/autofill/content/public/interfaces/autofill_agent.mojom.h" | 9 #include "components/autofill/content/public/interfaces/autofill_agent.mojom.h" |
10 #include "components/autofill/core/browser/test_autofill_client.h" | 10 #include "components/autofill/core/browser/test_autofill_client.h" |
11 #include "components/password_manager/core/browser/stub_log_manager.h" | 11 #include "components/password_manager/core/browser/stub_log_manager.h" |
12 #include "components/password_manager/core/browser/stub_password_manager_client.
h" | 12 #include "components/password_manager/core/browser/stub_password_manager_client.
h" |
13 #include "content/public/browser/navigation_entry.h" | 13 #include "content/public/browser/navigation_entry.h" |
14 #include "content/public/browser/ssl_status.h" | 14 #include "content/public/browser/ssl_status.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "content/public/test/test_renderer_host.h" | 16 #include "content/public/test/test_renderer_host.h" |
17 #include "mojo/public/cpp/bindings/binding.h" | 17 #include "mojo/public/cpp/bindings/binding.h" |
18 #include "services/shell/public/cpp/interface_provider.h" | 18 #include "services/service_manager/public/cpp/interface_provider.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using testing::Return; | 22 using testing::Return; |
23 | 23 |
24 namespace password_manager { | 24 namespace password_manager { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 class MockLogManager : public StubLogManager { | 28 class MockLogManager : public StubLogManager { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 EXPECT_EQ(url, entry->GetURL()); | 196 EXPECT_EQ(url, entry->GetURL()); |
197 EXPECT_TRUE(!!(entry->GetSSL().content_status & | 197 EXPECT_TRUE(!!(entry->GetSSL().content_status & |
198 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP)); | 198 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP)); |
199 } | 199 } |
200 | 200 |
201 INSTANTIATE_TEST_CASE_P(, | 201 INSTANTIATE_TEST_CASE_P(, |
202 ContentPasswordManagerDriverTest, | 202 ContentPasswordManagerDriverTest, |
203 testing::Values(true, false)); | 203 testing::Values(true, false)); |
204 | 204 |
205 } // namespace password_manager | 205 } // namespace password_manager |
OLD | NEW |