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

Unified Diff: services/ui/public/cpp/tests/window_server_shelltest_base.cc

Issue 2123363002: ShellTest -> ServiceTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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: services/ui/public/cpp/tests/window_server_shelltest_base.cc
diff --git a/services/ui/public/cpp/tests/window_server_shelltest_base.cc b/services/ui/public/cpp/tests/window_server_shelltest_base.cc
index ee55da418b63a7c6a0439bc36df16db5765106b3..c34ce7f13d64de9cd008644f0b71acd472547132 100644
--- a/services/ui/public/cpp/tests/window_server_shelltest_base.cc
+++ b/services/ui/public/cpp/tests/window_server_shelltest_base.cc
@@ -10,7 +10,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "services/shell/public/cpp/service.h"
-#include "services/shell/public/cpp/shell_test.h"
+#include "services/shell/public/cpp/service_test.h"
#include "services/ui/common/switches.h"
#include "ui/gl/gl_switches.h"
@@ -20,21 +20,21 @@ namespace {
const char kTestAppName[] = "mojo:mus_ws_unittests_app";
-class WindowServerShellTestClient : public shell::test::ShellTestClient {
+class WindowServerServiceTestClient : public shell::test::ServiceTestClient {
public:
- explicit WindowServerShellTestClient(WindowServerShellTestBase* test)
- : ShellTestClient(test), test_(test) {}
- ~WindowServerShellTestClient() override {}
+ explicit WindowServerServiceTestClient(WindowServerServiceTestBase* test)
+ : ServiceTestClient(test), test_(test) {}
+ ~WindowServerServiceTestClient() override {}
private:
- // shell::test::ShellTestClient:
+ // shell::test::ServiceTestClient:
bool OnConnect(shell::Connection* connection) override {
return test_->OnConnect(connection);
}
- WindowServerShellTestBase* test_;
+ WindowServerServiceTestBase* test_;
- DISALLOW_COPY_AND_ASSIGN(WindowServerShellTestClient);
+ DISALLOW_COPY_AND_ASSIGN(WindowServerServiceTestClient);
};
void EnsureCommandLineSwitch(const std::string& name) {
@@ -45,17 +45,17 @@ void EnsureCommandLineSwitch(const std::string& name) {
} // namespace
-WindowServerShellTestBase::WindowServerShellTestBase()
- : ShellTest(kTestAppName) {
+WindowServerServiceTestBase::WindowServerServiceTestBase()
+ : ServiceTest(kTestAppName) {
EnsureCommandLineSwitch(switches::kUseTestConfig);
EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests);
}
-WindowServerShellTestBase::~WindowServerShellTestBase() {}
+WindowServerServiceTestBase::~WindowServerServiceTestBase() {}
std::unique_ptr<shell::Service>
-WindowServerShellTestBase::CreateService() {
- return base::WrapUnique(new WindowServerShellTestClient(this));
+WindowServerServiceTestBase::CreateService() {
+ return base::WrapUnique(new WindowServerServiceTestClient(this));
}
} // namespace ui
« no previous file with comments | « services/ui/public/cpp/tests/window_server_shelltest_base.h ('k') | services/ui/public/cpp/tests/window_server_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698