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

Side by Side Diff: ash/keyboard_overlay/keyboard_overlay_delegate_unittest.cc

Issue 15735027: Use a direct include of utf_string_conversions.h in android_webview/, apps/, ash/, base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/keyboard_overlay/keyboard_overlay_delegate.cc ('k') | ash/keyboard_overlay/keyboard_overlay_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698