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

Unified Diff: services/ui/common/run_all_service_tests.cc

Issue 2617713002: [WIP] Add DCHECK for mojo::edk::Init().
Patch Set: test 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/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/common/run_all_service_tests.cc
diff --git a/services/ui/common/run_all_service_tests.cc b/services/ui/common/run_all_service_tests.cc
index 1bdba53eb11a12c7b9dd3bb764eddb386878fdcc..6db184f312b04bd170375c9bd4ecb351657c8098 100644
--- a/services/ui/common/run_all_service_tests.cc
+++ b/services/ui/common/run_all_service_tests.cc
@@ -3,9 +3,11 @@
// found in the LICENSE file.
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_io_thread.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
#include "mojo/edk/embedder/embedder.h"
+#include "mojo/edk/test/scoped_ipc_support.h"
#include "services/service_manager/background/background_service_manager_main.h"
#if defined(USE_OZONE)
@@ -29,7 +31,11 @@ class MusGpuTestSuite : public base::TestSuite {
int MasterProcessMain(int argc, char** argv) {
MusGpuTestSuite test_suite(argc, argv);
+
mojo::edk::Init();
+ base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
+ mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner());
+
return base::LaunchUnitTests(
argc, argv,
base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
« no previous file with comments | « services/ui/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698