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

Side by Side Diff: chrome/browser/ui/window_sizer_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/window_sizer_mac.mm ('k') | chrome/browser/ui/window_sizer_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <vector> 5 #include <vector>
6 6
7 #include "chrome/browser/window_sizer.h" 7 #include "chrome/browser/ui/window_sizer.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 // Some standard monitor sizes (no task bar). 11 // Some standard monitor sizes (no task bar).
12 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); 12 static const gfx::Rect tentwentyfour(0, 0, 1024, 768);
13 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); 13 static const gfx::Rect twelveeighty(0, 0, 1280, 1024);
14 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); 14 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200);
15 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); 15 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050);
16 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); 16 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200);
17 17
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 gfx::Rect window_bounds; 993 gfx::Rect window_bounds;
994 bool maximized; 994 bool maximized;
995 GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(), 995 GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(),
996 gfx::Rect(50, 800, 500, 400), false, bottom_nonprimary, 996 gfx::Rect(50, 800, 500, 400), false, bottom_nonprimary,
997 PERSISTED, &window_bounds, &maximized); 997 PERSISTED, &window_bounds, &maximized);
998 EXPECT_FALSE(maximized); 998 EXPECT_FALSE(maximized);
999 EXPECT_EQ(gfx::Rect(50, 368, 500, 400), window_bounds); 999 EXPECT_EQ(gfx::Rect(50, 368, 500, 400), window_bounds);
1000 } 1000 }
1001 } 1001 }
1002 #endif //defined(OS_MACOSX) 1002 #endif //defined(OS_MACOSX)
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer_mac.mm ('k') | chrome/browser/ui/window_sizer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698