OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ash/keyboard_overlay/keyboard_overlay_delegate.h" | 5 #include "ash/keyboard_overlay/keyboard_overlay_delegate.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/gfx/display.h" | 11 #include "ui/gfx/display.h" |
12 #include "ui/gfx/screen.h" | 12 #include "ui/gfx/screen.h" |
13 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 | 16 |
17 typedef test::AshTestBase KeyboardOverlayDelegateTest; | 17 typedef test::AshTestBase KeyboardOverlayDelegateTest; |
18 | 18 |
19 // Verifies we can show and close the widget for the overlay dialog. | 19 // Verifies we can show and close the widget for the overlay dialog. |
(...skipping 13 matching lines...) Expand all Loading... |
33 gfx::Rect work_area = Shell::GetScreen()->GetPrimaryDisplay().work_area(); | 33 gfx::Rect work_area = Shell::GetScreen()->GetPrimaryDisplay().work_area(); |
34 gfx::Rect bounds = widget->GetRestoredBounds(); | 34 gfx::Rect bounds = widget->GetRestoredBounds(); |
35 EXPECT_EQ(work_area.CenterPoint().x(), bounds.CenterPoint().x()); | 35 EXPECT_EQ(work_area.CenterPoint().x(), bounds.CenterPoint().x()); |
36 EXPECT_EQ(work_area.bottom(), bounds.bottom()); | 36 EXPECT_EQ(work_area.bottom(), bounds.bottom()); |
37 | 37 |
38 // Clean up. | 38 // Clean up. |
39 widget->CloseNow(); | 39 widget->CloseNow(); |
40 } | 40 } |
41 | 41 |
42 } // namespace ash | 42 } // namespace ash |
OLD | NEW |