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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_view_browsertest.cc

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h " 8 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h "
9 #include "chrome/browser/ui/autofill/password_generation_popup_view_tester.h" 9 #include "chrome/browser/ui/autofill/password_generation_popup_view_tester.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 21 matching lines...) Expand all
32 32
33 virtual ~TestPasswordGenerationPopupController() {} 33 virtual ~TestPasswordGenerationPopupController() {}
34 34
35 PasswordGenerationPopupView* view() { 35 PasswordGenerationPopupView* view() {
36 return view_; 36 return view_;
37 } 37 }
38 }; 38 };
39 39
40 class PasswordGenerationPopupViewTest : public InProcessBrowserTest { 40 class PasswordGenerationPopupViewTest : public InProcessBrowserTest {
41 public: 41 public:
42 virtual void SetUpOnMainThread() OVERRIDE { 42 virtual void SetUpOnMainThread() override {
43 gfx::NativeView native_view = 43 gfx::NativeView native_view =
44 browser()->tab_strip_model()->GetActiveWebContents()->GetNativeView(); 44 browser()->tab_strip_model()->GetActiveWebContents()->GetNativeView();
45 45
46 controller_ = 46 controller_ =
47 new TestPasswordGenerationPopupController( 47 new TestPasswordGenerationPopupController(
48 browser()->tab_strip_model()->GetActiveWebContents(), native_view); 48 browser()->tab_strip_model()->GetActiveWebContents(), native_view);
49 } 49 }
50 50
51 scoped_ptr<PasswordGenerationPopupViewTester> GetViewTester() { 51 scoped_ptr<PasswordGenerationPopupViewTester> GetViewTester() {
52 return PasswordGenerationPopupViewTester::For(controller_->view()).Pass(); 52 return PasswordGenerationPopupViewTester::For(controller_->view()).Pass();
(...skipping 15 matching lines...) Expand all
68 static_cast<PasswordGenerationPopupController*>( 68 static_cast<PasswordGenerationPopupController*>(
69 controller_)->popup_bounds().CenterPoint(); 69 controller_)->popup_bounds().CenterPoint();
70 GetViewTester()->SimulateMouseMovementAt(center_point); 70 GetViewTester()->SimulateMouseMovementAt(center_point);
71 71
72 // Deletes |controller_|. 72 // Deletes |controller_|.
73 controller_->HideAndDestroy(); 73 controller_->HideAndDestroy();
74 } 74 }
75 #endif 75 #endif
76 76
77 } // namespace autofill 77 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698