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

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

Issue 681823004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/popup_controller_common.h" 5 #include "chrome/browser/ui/autofill/popup_controller_common.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/ui/autofill/test_popup_controller_common.h" 8 #include "chrome/browser/ui/autofill/test_popup_controller_common.h"
9 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 9 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
10 #include "ui/gfx/display.h" 10 #include "ui/gfx/display.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 class PopupControllerBaseTest : public ChromeRenderViewHostTestHarness { 15 class PopupControllerBaseTest : public ChromeRenderViewHostTestHarness {
16 public: 16 public:
17 PopupControllerBaseTest() {} 17 PopupControllerBaseTest() {}
18 virtual ~PopupControllerBaseTest() {} 18 ~PopupControllerBaseTest() override {}
19 19
20 private: 20 private:
21 DISALLOW_COPY_AND_ASSIGN(PopupControllerBaseTest); 21 DISALLOW_COPY_AND_ASSIGN(PopupControllerBaseTest);
22 }; 22 };
23 23
24 TEST_F(PopupControllerBaseTest, GetPopupBoundsTest) { 24 TEST_F(PopupControllerBaseTest, GetPopupBoundsTest) {
25 int desired_width = 40; 25 int desired_width = 40;
26 int desired_height = 16; 26 int desired_height = 16;
27 27
28 // Set up the visible screen space. 28 // Set up the visible screen space.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 gfx::Rect actual_popup_bounds = 76 gfx::Rect actual_popup_bounds =
77 popup_controller->GetPopupBounds(desired_width, desired_height); 77 popup_controller->GetPopupBounds(desired_width, desired_height);
78 78
79 EXPECT_EQ(expected_popup_bounds[i].ToString(), 79 EXPECT_EQ(expected_popup_bounds[i].ToString(),
80 actual_popup_bounds.ToString()) << 80 actual_popup_bounds.ToString()) <<
81 "Popup bounds failed to match for test " << i; 81 "Popup bounds failed to match for test " << i;
82 } 82 }
83 } 83 }
84 84
85 } // namespace autofill 85 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698