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

Unified Diff: mash/test/mash_unittests.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 | « mash/test/DEPS ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/test/mash_unittests.cc
diff --git a/mash/test/mash_unittests.cc b/mash/test/mash_unittests.cc
index 942547556bd892b203d9bf528690cc6d8bb658ba..f057a2ae35701f9abf1afe36b4c43cbc1c47fc30 100644
--- a/mash/test/mash_unittests.cc
+++ b/mash/test/mash_unittests.cc
@@ -4,11 +4,18 @@
#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_io_thread.h"
#include "mash/test/mash_test_suite.h"
+#include "mojo/edk/embedder/embedder.h"
+#include "mojo/edk/test/scoped_ipc_support.h"
int MasterProcessMain(int argc, char** argv) {
mash::test::MashTestSuite 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(&mash::test::MashTestSuite::Run,
base::Unretained(&test_suite)));
« no previous file with comments | « mash/test/DEPS ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698