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

Unified Diff: services/ui/ws/window_server_test_base.cc

Issue 2644093002: aura: Some change to how the client-lib is set up. (Closed)
Patch Set: . Created 3 years, 11 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 | « services/ui/ws/window_server_test_base.h ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server_test_base.cc
diff --git a/services/ui/ws/window_server_test_base.cc b/services/ui/ws/window_server_test_base.cc
index 3cc467b0d9338bfd1a417513b5e5ab6f01c1c247..bee909e989bd4522396c49f7036700ec598eadc9 100644
--- a/services/ui/ws/window_server_test_base.cc
+++ b/services/ui/ws/window_server_test_base.cc
@@ -13,9 +13,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/interface_registry.h"
-#include "services/ui/public/cpp/gpu/gpu.h"
#include "ui/aura/env.h"
-#include "ui/aura/mus/mus_context_factory.h"
#include "ui/aura/mus/window_tree_client.h"
#include "ui/aura/mus/window_tree_host_mus.h"
#include "ui/display/display.h"
@@ -93,10 +91,6 @@ void WindowServerTestBase::SetUp() {
WindowServerServiceTestBase::SetUp();
env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS);
- gpu_ = ui::Gpu::Create(connector(), nullptr);
- compositor_context_factory_ =
- base::MakeUnique<aura::MusContextFactory>(gpu_.get());
- env_->set_context_factory(compositor_context_factory_.get());
display::Screen::SetScreenInstance(&screen_);
std::unique_ptr<aura::WindowTreeClient> window_manager_window_tree_client =
base::MakeUnique<aura::WindowTreeClient>(connector(), this, this);
@@ -115,7 +109,6 @@ void WindowServerTestBase::TearDown() {
window_tree_hosts_.clear();
window_tree_clients_.clear();
env_.reset();
- gpu_.reset();
display::Screen::SetScreenInstance(nullptr);
WindowServerServiceTestBase::TearDown();
« no previous file with comments | « services/ui/ws/window_server_test_base.h ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698