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

Unified Diff: mojo/edk/test/run_all_unittests.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert remaining MP tests and simplify RawChannel destruction Created 5 years, 3 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
Index: mojo/edk/test/run_all_unittests.cc
diff --git a/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc b/mojo/edk/test/run_all_unittests.cc
similarity index 86%
copy from third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
copy to mojo/edk/test/run_all_unittests.cc
index 2059347ea3a50b262125f6e2f3e086a41ed983b7..328c24892b1fc63bf4d076a96f7808eb93f2ceb0 100644
--- a/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
+++ b/mojo/edk/test/run_all_unittests.cc
@@ -6,8 +6,10 @@
#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_io_thread.h"
#include "base/test/test_suite.h"
#include "mojo/edk/embedder/test_embedder.h"
+#include "mojo/edk/test/scoped_ipc_support.h"
#include "mojo/edk/test/test_support_impl.h"
#include "mojo/public/tests/test_support_private.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -32,6 +34,8 @@ int main(int argc, char** argv) {
mojo::embedder::test::InitWithSimplePlatformSupport();
mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl());
+ base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
+ mojo::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner());
return base::LaunchUnitTests(
argc, argv,

Powered by Google App Engine
This is Rietveld 408576698