OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/chrome_password_manager_client.h" | 5 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "components/prefs/pref_registry_simple.h" | 34 #include "components/prefs/pref_registry_simple.h" |
35 #include "components/prefs/pref_service.h" | 35 #include "components/prefs/pref_service.h" |
36 #include "components/prefs/testing_pref_service.h" | 36 #include "components/prefs/testing_pref_service.h" |
37 #include "components/sessions/content/content_record_password_state.h" | 37 #include "components/sessions/content/content_record_password_state.h" |
38 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 38 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
39 #include "components/version_info/version_info.h" | 39 #include "components/version_info/version_info.h" |
40 #include "content/public/browser/browser_context.h" | 40 #include "content/public/browser/browser_context.h" |
41 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" |
42 #include "content/public/test/web_contents_tester.h" | 42 #include "content/public/test/web_contents_tester.h" |
43 #include "mojo/public/cpp/bindings/binding.h" | 43 #include "mojo/public/cpp/bindings/binding.h" |
44 #include "services/shell/public/cpp/interface_provider.h" | 44 #include "services/service_manager/public/cpp/interface_provider.h" |
45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 | 47 |
48 using browser_sync::ProfileSyncServiceMock; | 48 using browser_sync::ProfileSyncServiceMock; |
49 using content::BrowserContext; | 49 using content::BrowserContext; |
50 using content::WebContents; | 50 using content::WebContents; |
51 using sessions::GetPasswordStateFromNavigation; | 51 using sessions::GetPasswordStateFromNavigation; |
52 using sessions::SerializedNavigationEntry; | 52 using sessions::SerializedNavigationEntry; |
53 using testing::Return; | 53 using testing::Return; |
54 using testing::_; | 54 using testing::_; |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 // In particular, this WebContent should not have the | 564 // In particular, this WebContent should not have the |
565 // ChromePasswordManagerClient. | 565 // ChromePasswordManagerClient. |
566 ASSERT_FALSE( | 566 ASSERT_FALSE( |
567 ChromePasswordManagerClient::FromWebContents(web_contents.get())); | 567 ChromePasswordManagerClient::FromWebContents(web_contents.get())); |
568 | 568 |
569 // This call should not crash. | 569 // This call should not crash. |
570 ChromePasswordManagerClient::BindCredentialManager( | 570 ChromePasswordManagerClient::BindCredentialManager( |
571 web_contents->GetMainFrame(), | 571 web_contents->GetMainFrame(), |
572 password_manager::mojom::CredentialManagerRequest()); | 572 password_manager::mojom::CredentialManagerRequest()); |
573 } | 573 } |
OLD | NEW |