OLD | NEW |
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 Loading... |
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) |
OLD | NEW |