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/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/geometry/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 ~PopupControllerBaseTest() override {} | 18 ~PopupControllerBaseTest() override {} |
19 | 19 |
20 private: | 20 private: |
21 DISALLOW_COPY_AND_ASSIGN(PopupControllerBaseTest); | 21 DISALLOW_COPY_AND_ASSIGN(PopupControllerBaseTest); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |