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/window_sizer.h" |
| 8 #include "base/logging.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
9 | 10 |
10 // Some standard monitor sizes (no task bar). | 11 // Some standard monitor sizes (no task bar). |
11 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); | 12 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); |
12 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); | 13 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); |
13 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); | 14 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); |
14 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); | 15 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); |
15 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); | 16 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); |
16 | 17 |
17 // Represents a 1024x768 monitor that is not the primary monitor, arranged to | 18 // Represents a 1024x768 monitor that is not the primary monitor, arranged to |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 bool maximized; | 586 bool maximized; |
586 GetWindowBounds(tentwentyfour, taskbar_left_work_area, gfx::Rect(), | 587 GetWindowBounds(tentwentyfour, taskbar_left_work_area, gfx::Rect(), |
587 initial_bounds, false, PERSISTED, &window_bounds, | 588 initial_bounds, false, PERSISTED, &window_bounds, |
588 &maximized); | 589 &maximized); |
589 EXPECT_FALSE(maximized); | 590 EXPECT_FALSE(maximized); |
590 initial_bounds.Offset(taskbar_left_work_area.x(), | 591 initial_bounds.Offset(taskbar_left_work_area.x(), |
591 taskbar_left_work_area.y()); | 592 taskbar_left_work_area.y()); |
592 EXPECT_EQ(initial_bounds, window_bounds); | 593 EXPECT_EQ(initial_bounds, window_bounds); |
593 } | 594 } |
594 } | 595 } |
OLD | NEW |