OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "chrome/browser/dock_info.h" | 6 #include "chrome/browser/ui/tabs/dock_info.h" |
7 #include "gfx/point.h" | 7 #include "gfx/point.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 // Distance in pixels between the hotspot and when the hint should be shown. | 11 // Distance in pixels between the hotspot and when the hint should be shown. |
12 const int kHotSpotDeltaX = 120; | 12 const int kHotSpotDeltaX = 120; |
13 const int kHotSpotDeltaY = 120; | 13 const int kHotSpotDeltaY = 120; |
14 // Size of the popup window. | 14 // Size of the popup window. |
15 const int kPopupWidth = 70; | 15 const int kPopupWidth = 70; |
16 const int kPopupHeight = 70; | 16 const int kPopupHeight = 70; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 for (size_t i = 0; i < arraysize(type); ++i) { | 183 for (size_t i = 0; i < arraysize(type); ++i) { |
184 d.set_type(type[i]); | 184 d.set_type(type[i]); |
185 gfx::Rect result = d.GetPopupRect(); | 185 gfx::Rect result = d.GetPopupRect(); |
186 EXPECT_EQ(expected_x[i], result.x()); | 186 EXPECT_EQ(expected_x[i], result.x()); |
187 EXPECT_EQ(expected_y[i], result.y()); | 187 EXPECT_EQ(expected_y[i], result.y()); |
188 EXPECT_EQ(kPopupWidth, result.width()); | 188 EXPECT_EQ(kPopupWidth, result.width()); |
189 EXPECT_EQ(kPopupHeight, result.height()); | 189 EXPECT_EQ(kPopupHeight, result.height()); |
190 } | 190 } |
191 } | 191 } |
OLD | NEW |