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

Side by Side Diff: components/mus/public/cpp/tests/window_server_shelltest_base.cc

Issue 1979323002: mus: Show USER_PRIVATE window container during views tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@widgetinteractive
Patch Set: rebase, fix linux Created 4 years, 7 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 | « components/mus/mus_app.cc ('k') | components/mus/ws/window_tree.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/mus/public/cpp/tests/window_server_shelltest_base.h" 5 #include "components/mus/public/cpp/tests/window_server_shelltest_base.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "components/mus/common/args.h" 12 #include "components/mus/common/switches.h"
13 #include "services/shell/public/cpp/shell_client.h" 13 #include "services/shell/public/cpp/shell_client.h"
14 #include "services/shell/public/cpp/shell_test.h" 14 #include "services/shell/public/cpp/shell_test.h"
15 #include "ui/gl/gl_switches.h" 15 #include "ui/gl/gl_switches.h"
16 16
17 namespace mus { 17 namespace mus {
18 18
19 namespace { 19 namespace {
20 20
21 const char kTestAppName[] = "mojo:mus_ws_unittests_app"; 21 const char kTestAppName[] = "mojo:mus_ws_unittests_app";
22 22
(...skipping 17 matching lines...) Expand all
40 void EnsureCommandLineSwitch(const std::string& name) { 40 void EnsureCommandLineSwitch(const std::string& name) {
41 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); 41 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
42 if (!cmd_line->HasSwitch(name)) 42 if (!cmd_line->HasSwitch(name))
43 cmd_line->AppendSwitch(name); 43 cmd_line->AppendSwitch(name);
44 } 44 }
45 45
46 } // namespace 46 } // namespace
47 47
48 WindowServerShellTestBase::WindowServerShellTestBase() 48 WindowServerShellTestBase::WindowServerShellTestBase()
49 : ShellTest(kTestAppName) { 49 : ShellTest(kTestAppName) {
50 EnsureCommandLineSwitch(kUseTestConfig); 50 EnsureCommandLineSwitch(switches::kUseTestConfig);
51 EnsureCommandLineSwitch(switches::kOverrideUseGLWithOSMesaForTests); 51 EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests);
52 } 52 }
53 53
54 WindowServerShellTestBase::~WindowServerShellTestBase() {} 54 WindowServerShellTestBase::~WindowServerShellTestBase() {}
55 55
56 std::unique_ptr<shell::ShellClient> 56 std::unique_ptr<shell::ShellClient>
57 WindowServerShellTestBase::CreateShellClient() { 57 WindowServerShellTestBase::CreateShellClient() {
58 return base::WrapUnique(new WindowServerShellTestClient(this)); 58 return base::WrapUnique(new WindowServerShellTestClient(this));
59 } 59 }
60 60
61 } // namespace mus 61 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698