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

Unified Diff: components/mus/public/cpp/tests/window_server_shelltest_base.cc

Issue 2119963002: Move mus to //services/ui (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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/cpp/tests/window_server_shelltest_base.cc
diff --git a/components/mus/public/cpp/tests/window_server_shelltest_base.cc b/components/mus/public/cpp/tests/window_server_shelltest_base.cc
deleted file mode 100644
index de933ab17660f6ebedf887ee040fa3cb0744ce83..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/tests/window_server_shelltest_base.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/mus/public/cpp/tests/window_server_shelltest_base.h"
-
-#include <memory>
-
-#include "base/command_line.h"
-#include "base/macros.h"
-#include "base/memory/ptr_util.h"
-#include "components/mus/common/switches.h"
-#include "services/shell/public/cpp/shell_client.h"
-#include "services/shell/public/cpp/shell_test.h"
-#include "ui/gl/gl_switches.h"
-
-namespace mus {
-
-namespace {
-
-const char kTestAppName[] = "mojo:mus_ws_unittests_app";
-
-class WindowServerShellTestClient : public shell::test::ShellTestClient {
- public:
- explicit WindowServerShellTestClient(WindowServerShellTestBase* test)
- : ShellTestClient(test), test_(test) {}
- ~WindowServerShellTestClient() override {}
-
- private:
- // shell::test::ShellTestClient:
- bool AcceptConnection(shell::Connection* connection) override {
- return test_->AcceptConnection(connection);
- }
-
- WindowServerShellTestBase* test_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowServerShellTestClient);
-};
-
-void EnsureCommandLineSwitch(const std::string& name) {
- base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
- if (!cmd_line->HasSwitch(name))
- cmd_line->AppendSwitch(name);
-}
-
-} // namespace
-
-WindowServerShellTestBase::WindowServerShellTestBase()
- : ShellTest(kTestAppName) {
- EnsureCommandLineSwitch(switches::kUseTestConfig);
- EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests);
-}
-
-WindowServerShellTestBase::~WindowServerShellTestBase() {}
-
-std::unique_ptr<shell::ShellClient>
-WindowServerShellTestBase::CreateShellClient() {
- return base::WrapUnique(new WindowServerShellTestClient(this));
-}
-
-} // namespace mus

Powered by Google App Engine
This is Rietveld 408576698