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

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

Issue 684783004: Prefix CommandLine usage with base namespace (Part 4: ash/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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/display_manager.cc ('k') | ash/drag_drop/drag_drop_controller_unittest.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/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/test/ash_test_base.h" 10 #include "ash/test/ash_test_base.h"
(...skipping 16 matching lines...) Expand all
27 info.SetBounds(bounds); 27 info.SetBounds(bounds);
28 return info; 28 return info;
29 } 29 }
30 30
31 class MirrorOnBootTest : public test::AshTestBase { 31 class MirrorOnBootTest : public test::AshTestBase {
32 public: 32 public:
33 MirrorOnBootTest() {} 33 MirrorOnBootTest() {}
34 ~MirrorOnBootTest() override {} 34 ~MirrorOnBootTest() override {}
35 35
36 void SetUp() override { 36 void SetUp() override {
37 CommandLine::ForCurrentProcess()->AppendSwitchASCII( 37 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
38 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300"); 38 switches::kAshHostWindowBounds, "1+1-300x300,1+301-300x300");
39 CommandLine::ForCurrentProcess()->AppendSwitch( 39 base::CommandLine::ForCurrentProcess()->AppendSwitch(
40 switches::kAshEnableSoftwareMirroring); 40 switches::kAshEnableSoftwareMirroring);
41 test::AshTestBase::SetUp(); 41 test::AshTestBase::SetUp();
42 } 42 }
43 void TearDown() override { test::AshTestBase::TearDown(); } 43 void TearDown() override { test::AshTestBase::TearDown(); }
44 44
45 private: 45 private:
46 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest); 46 DISALLOW_COPY_AND_ASSIGN(MirrorOnBootTest);
47 }; 47 };
48 48
49 } 49 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) { 279 TEST_F(MirrorOnBootTest, MAYBE_MirrorOnBoot) {
280 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); 280 DisplayManager* display_manager = Shell::GetInstance()->display_manager();
281 EXPECT_TRUE(display_manager->IsMirrored()); 281 EXPECT_TRUE(display_manager->IsMirrored());
282 RunAllPendingInMessageLoop(); 282 RunAllPendingInMessageLoop();
283 test::MirrorWindowTestApi test_api; 283 test::MirrorWindowTestApi test_api;
284 EXPECT_TRUE(test_api.GetHost()); 284 EXPECT_TRUE(test_api.GetHost());
285 } 285 }
286 286
287 } // namespace ash 287 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698