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/views/autofill/autofill_popup_base_view.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" | 8 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" |
8 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/events/event_utils.h" | 15 #include "ui/events/event_utils.h" |
15 #include "ui/views/test/views_test_base.h" | 16 #include "ui/views/test/views_test_base.h" |
16 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 ShowView(); | 139 ShowView(); |
139 | 140 |
140 gfx::Point display_point = | 141 gfx::Point display_point = |
141 static_cast<views::View*>(view_)->GetBoundsInScreen().origin(); | 142 static_cast<views::View*>(view_)->GetBoundsInScreen().origin(); |
142 gfx::Point expected_point = bounds.origin(); | 143 gfx::Point expected_point = bounds.origin(); |
143 EXPECT_EQ(expected_point, display_point); | 144 EXPECT_EQ(expected_point, display_point); |
144 } | 145 } |
145 | 146 |
146 } // namespace autofill | 147 } // namespace autofill |
OLD | NEW |