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

Unified Diff: ui/views/mus/views_mus_test_suite.cc

Issue 2610063002: Cleanup after removing views-mus code (Closed)
Patch Set: merge Created 3 years, 12 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
« no previous file with comments | « ui/views/mus/views_mus_test_suite.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/views_mus_test_suite.cc
diff --git a/ui/views/mus/views_aura_mus_test_suite.cc b/ui/views/mus/views_mus_test_suite.cc
similarity index 94%
rename from ui/views/mus/views_aura_mus_test_suite.cc
rename to ui/views/mus/views_mus_test_suite.cc
index 2be58a2596d09465a53ad3ab474e2a7ce093b5c6..9d79bf024734a78f94a8a6717ccefb1f88507a8c 100644
--- a/ui/views/mus/views_aura_mus_test_suite.cc
+++ b/ui/views/mus/views_mus_test_suite.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/views/mus/views_aura_mus_test_suite.h"
+#include "ui/views/mus/views_mus_test_suite.h"
#include <memory>
#include <string>
@@ -151,10 +151,9 @@ class ServiceManagerConnection {
background_service_manager_ =
base::MakeUnique<service_manager::BackgroundServiceManager>();
background_service_manager_->Init(nullptr);
- context_ =
- base::MakeUnique<service_manager::ServiceContext>(
- base::MakeUnique<DefaultService>(),
- background_service_manager_->CreateServiceRequest(GetTestName()));
+ context_ = base::MakeUnique<service_manager::ServiceContext>(
+ base::MakeUnique<DefaultService>(),
+ background_service_manager_->CreateServiceRequest(GetTestName()));
// ui/views/mus requires a WindowManager running, so launch test_wm.
service_manager::Connector* connector = context_->connector();
@@ -189,12 +188,12 @@ class ServiceManagerConnection {
DISALLOW_COPY_AND_ASSIGN(ServiceManagerConnection);
};
-ViewsAuraMusTestSuite::ViewsAuraMusTestSuite(int argc, char** argv)
+ViewsMusTestSuite::ViewsMusTestSuite(int argc, char** argv)
: ViewsTestSuite(argc, argv) {}
-ViewsAuraMusTestSuite::~ViewsAuraMusTestSuite() {}
+ViewsMusTestSuite::~ViewsMusTestSuite() {}
-void ViewsAuraMusTestSuite::Initialize() {
+void ViewsMusTestSuite::Initialize() {
PlatformTestHelper::SetIsMus();
// Let other services know that we're running in tests. Do this with a
// command line flag to avoid making blocking calls to other processes for
@@ -207,7 +206,7 @@ void ViewsAuraMusTestSuite::Initialize() {
service_manager_connections_ = base::MakeUnique<ServiceManagerConnection>();
}
-void ViewsAuraMusTestSuite::Shutdown() {
+void ViewsMusTestSuite::Shutdown() {
service_manager_connections_.reset();
ViewsTestSuite::Shutdown();
}
« no previous file with comments | « ui/views/mus/views_mus_test_suite.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698