| 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/ui/autofill/password_generation_popup_view.h" | 5 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" | 9 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" |
| 10 #include "chrome/browser/ui/autofill/password_generation_popup_view_tester.h" | 10 #include "chrome/browser/ui/autofill/password_generation_popup_view_tester.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class TestPasswordGenerationPopupController : | 22 class TestPasswordGenerationPopupController : |
| 23 public PasswordGenerationPopupControllerImpl { | 23 public PasswordGenerationPopupControllerImpl { |
| 24 public: | 24 public: |
| 25 TestPasswordGenerationPopupController(content::WebContents* web_contents, | 25 TestPasswordGenerationPopupController(content::WebContents* web_contents, |
| 26 gfx::NativeView native_view) | 26 gfx::NativeView native_view) |
| 27 : PasswordGenerationPopupControllerImpl( | 27 : PasswordGenerationPopupControllerImpl( |
| 28 gfx::RectF(0, 0, 10, 10), | 28 gfx::RectF(0, 0, 10, 10), |
| 29 PasswordForm(), | 29 PasswordForm(), |
| 30 10, | 30 10, |
| 31 nullptr /* PasswordManager*/, | |
| 32 password_manager::ContentPasswordManagerDriverFactory:: | 31 password_manager::ContentPasswordManagerDriverFactory:: |
| 33 FromWebContents(web_contents) | 32 FromWebContents(web_contents) |
| 34 ->GetDriverForFrame(web_contents->GetMainFrame()), | 33 ->GetDriverForFrame(web_contents->GetMainFrame()), |
| 35 nullptr /* PasswordGenerationPopupObserver*/, | 34 nullptr /* PasswordGenerationPopupObserver*/, |
| 36 web_contents, | 35 web_contents, |
| 37 native_view) {} | 36 native_view) {} |
| 38 | 37 |
| 39 ~TestPasswordGenerationPopupController() override {} | 38 ~TestPasswordGenerationPopupController() override {} |
| 40 | 39 |
| 41 PasswordGenerationPopupView* view() { | 40 PasswordGenerationPopupView* view() { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Regression test for crbug.com/439618. | 83 // Regression test for crbug.com/439618. |
| 85 IN_PROC_BROWSER_TEST_F(PasswordGenerationPopupViewTest, | 84 IN_PROC_BROWSER_TEST_F(PasswordGenerationPopupViewTest, |
| 86 InvalidContainerView) { | 85 InvalidContainerView) { |
| 87 controller_ = new autofill::TestPasswordGenerationPopupController( | 86 controller_ = new autofill::TestPasswordGenerationPopupController( |
| 88 GetWebContents(), NULL); | 87 GetWebContents(), NULL); |
| 89 controller_->Show(true /* display password */); | 88 controller_->Show(true /* display password */); |
| 90 } | 89 } |
| 91 #endif | 90 #endif |
| 92 | 91 |
| 93 } // namespace autofill | 92 } // namespace autofill |
| OLD | NEW |