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

Side by Side Diff: ash/display/mirror_window_controller_unittest.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/display/mouse_cursor_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/display/mirror_window_controller.h" 5 #include "ash/display/mirror_window_controller.h"
6 6
7 #include "ash/common/ash_switches.h" 7 #include "ash/common/ash_switches.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/display/window_tree_host_manager.h" 9 #include "ash/display/window_tree_host_manager.h"
10 #include "ash/screen_util.h" 10 #include "ash/screen_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); 42 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300");
43 base::CommandLine::ForCurrentProcess()->AppendSwitch( 43 base::CommandLine::ForCurrentProcess()->AppendSwitch(
44 switches::kAshEnableSoftwareMirroring); 44 switches::kAshEnableSoftwareMirroring);
45 test::AshTestBase::SetUp(); 45 test::AshTestBase::SetUp();
46 } 46 }
47 void TearDown() override { test::AshTestBase::TearDown(); } 47 void TearDown() override { test::AshTestBase::TearDown(); }
48 48
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); 50 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest);
51 }; 51 };
52
53 } 52 }
54 53
55 typedef test::AshTestBase MirrorWindowControllerTest; 54 typedef test::AshTestBase MirrorWindowControllerTest;
56 55
57 #if defined(OS_WIN) 56 #if defined(OS_WIN)
58 // Software mirroring does not work on win. 57 // Software mirroring does not work on win.
59 #define MAYBE_MirrorCursorBasic DISABLED_MirrorCursorBasic 58 #define MAYBE_MirrorCursorBasic DISABLED_MirrorCursorBasic
60 #define MAYBE_MirrorCursorLocations DISABLED_MirrorCursorLocations 59 #define MAYBE_MirrorCursorLocations DISABLED_MirrorCursorLocations
61 #define MAYBE_MirrorCursorMoveOnEnter DISABLED_MirrorCursorMoveOnEnter 60 #define MAYBE_MirrorCursorMoveOnEnter DISABLED_MirrorCursorMoveOnEnter
62 #define MAYBE_MirrorCursorRotate DISABLED_MirrorCursorRotate 61 #define MAYBE_MirrorCursorRotate DISABLED_MirrorCursorRotate
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 298
300 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { 299 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) {
301 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); 300 DisplayManager* display_manager = Shell::GetInstance()->display_manager();
302 EXPECT_TRUE(display_manager->IsInMirrorMode()); 301 EXPECT_TRUE(display_manager->IsInMirrorMode());
303 RunAllPendingInMessageLoop(); 302 RunAllPendingInMessageLoop();
304 test::MirrorWindowTestApi test_api; 303 test::MirrorWindowTestApi test_api;
305 EXPECT_TRUE(test_api.GetHost()); 304 EXPECT_TRUE(test_api.GetHost());
306 } 305 }
307 306
308 } // namespace ash 307 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/display/mouse_cursor_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698