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

Side by Side Diff: chrome/browser/ui/tabs/dock_info_unittest.cc

Issue 5544002: Move a bunch more browser stuff around.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_mac.cc ('k') | chrome/browser/ui/tabs/dock_info_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_mac.cc ('k') | chrome/browser/ui/tabs/dock_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698