OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_view_common.h" | 5 #include "chrome/browser/ui/autofill/popup_view_common.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
| 9 #include <memory> |
| 10 |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
12 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
13 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
14 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
15 | 16 |
16 namespace autofill { | 17 namespace autofill { |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 // Test class which overrides specific behavior for testing. | 21 // Test class which overrides specific behavior for testing. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 web_contents()->GetNativeView(), /* is_rtl= */ true); | 100 web_contents()->GetNativeView(), /* is_rtl= */ true); |
100 gfx::Rect expected_popup_bounds = test_cases[i].expected_popup_bounds_rtl; | 101 gfx::Rect expected_popup_bounds = test_cases[i].expected_popup_bounds_rtl; |
101 if (expected_popup_bounds.IsEmpty()) | 102 if (expected_popup_bounds.IsEmpty()) |
102 expected_popup_bounds = test_cases[i].expected_popup_bounds_ltr; | 103 expected_popup_bounds = test_cases[i].expected_popup_bounds_ltr; |
103 EXPECT_EQ(expected_popup_bounds.ToString(), actual_popup_bounds.ToString()) | 104 EXPECT_EQ(expected_popup_bounds.ToString(), actual_popup_bounds.ToString()) |
104 << "Popup bounds failed to match for rtl test " << i; | 105 << "Popup bounds failed to match for rtl test " << i; |
105 } | 106 } |
106 } | 107 } |
107 | 108 |
108 } // namespace autofill | 109 } // namespace autofill |
OLD | NEW |