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

Side by Side Diff: chrome/browser/ui/ash/window_positioner_unittest.cc

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/wm/window_positioner.h" 5 #include "ash/wm/window_positioner.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 "ash/test/test_shell_delegate.h" 9 #include "ash/test/test_shell_delegate.h"
10 #include "ash/wm/window_resizer.h" 10 #include "ash/wm/window_resizer.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/host_desktop.h"
15 #include "chrome/test/base/test_browser_window_aura.h" 14 #include "chrome/test/base/test_browser_window_aura.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "content/public/test/render_view_test.h" 16 #include "content/public/test/render_view_test.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 #include "ui/aura/env.h" 18 #include "ui/aura/env.h"
20 #include "ui/aura/test/test_windows.h" 19 #include "ui/aura/test/test_windows.h"
21 #include "ui/aura/window_event_dispatcher.h" 20 #include "ui/aura/window_event_dispatcher.h"
21 #include "ui/gfx/host_desktop_type.h"
22 #include "ui/gfx/screen.h" 22 #include "ui/gfx/screen.h"
23 23
24 namespace ash { 24 namespace ash {
25 namespace test { 25 namespace test {
26 26
27 // A test class for preparing window positioner tests - it creates a testing 27 // A test class for preparing window positioner tests - it creates a testing
28 // base by adding a window and a popup which can be independently 28 // base by adding a window and a popup which can be independently
29 // positioned to see where the positioner will place the window. 29 // positioned to see where the positioner will place the window.
30 class WindowPositionerTest : public AshTestBase { 30 class WindowPositionerTest : public AshTestBase {
31 public: 31 public:
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 // Check that the popup is placed full screen. 223 // Check that the popup is placed full screen.
224 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); 224 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position);
225 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), 225 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(),
226 pop_position.width(), pop_position.height()), 226 pop_position.width(), pop_position.height()),
227 full); 227 full);
228 } 228 }
229 229
230 } // namespace test 230 } // namespace test
231 } // namespace ash 231 } // namespace ash
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_common.cc ('k') | chrome/browser/ui/aura/active_desktop_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698