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

Side by Side Diff: views/window/window_win_unittest.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months 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 | « views/window/window_win.cc ('k') | webkit/DEPS » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/window/window_win.h" 5 #include "views/window/window_win.h"
6 6
7 #include "gfx/rect.h"
8 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/rect.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 TEST(WindowWinTest, EnsureRectIsVisibleInRect) { 12 TEST(WindowWinTest, EnsureRectIsVisibleInRect) {
13 gfx::Rect parent_rect(0, 0, 500, 400); 13 gfx::Rect parent_rect(0, 0, 500, 400);
14 14
15 { 15 {
16 // Child rect x < 0 16 // Child rect x < 0
17 gfx::Rect child_rect(-50, 20, 100, 100); 17 gfx::Rect child_rect(-50, 20, 100, 100);
18 internal::EnsureRectIsVisibleInRect(parent_rect, &child_rect, 10); 18 internal::EnsureRectIsVisibleInRect(parent_rect, &child_rect, 10);
(...skipping 30 matching lines...) Expand all
49 49
50 { 50 {
51 // Child rect height > parent_rect.height 51 // Child rect height > parent_rect.height
52 gfx::Rect child_rect(20, 20, 100, 700); 52 gfx::Rect child_rect(20, 20, 100, 700);
53 internal::EnsureRectIsVisibleInRect(parent_rect, &child_rect, 10); 53 internal::EnsureRectIsVisibleInRect(parent_rect, &child_rect, 10);
54 EXPECT_EQ(gfx::Rect(20, 20, 100, 380), child_rect); 54 EXPECT_EQ(gfx::Rect(20, 20, 100, 380), child_rect);
55 } 55 }
56 } 56 }
57 57
58 } // namespace views 58 } // namespace views
OLDNEW
« no previous file with comments | « views/window/window_win.cc ('k') | webkit/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698