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

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

Issue 2087333002: mus::GpuService: Support establish GpuChannel asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the unittests 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
« no previous file with comments | « mash/quick_launch/quick_launch_application.cc ('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_mus_test_suite.cc b/ui/views/mus/views_mus_test_suite.cc
index e10d7716b74de2d721468d34f727d9ccff607e02..2257b8e8640d4df73afd612ac0f9e56657a862f1 100644
--- a/ui/views/mus/views_mus_test_suite.cc
+++ b/ui/views/mus/views_mus_test_suite.cc
@@ -12,6 +12,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/simple_thread.h"
#include "base/threading/thread.h"
+#include "components/mus/common/gpu_service.h"
#include "components/mus/common/switches.h"
#include "services/shell/background/background_shell.h"
#include "services/shell/public/cpp/connector.h"
@@ -44,11 +45,14 @@ class PlatformTestHelperMus : public PlatformTestHelper {
public:
PlatformTestHelperMus(shell::Connector* connector,
const shell::Identity& identity) {
+ mus::GpuService::Initialize(connector);
// It is necessary to recreate the WindowManagerConnection for each test,
// since a new MessageLoop is created for each test.
connection_ = WindowManagerConnection::Create(connector, identity);
}
- ~PlatformTestHelperMus() override {}
+ ~PlatformTestHelperMus() override {
+ mus::GpuService::Terminate();
+ }
private:
std::unique_ptr<WindowManagerConnection> connection_;
« no previous file with comments | « mash/quick_launch/quick_launch_application.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698