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

Unified Diff: cc/test/run_all_unittests.cc

Issue 2023973002: Introduce cc StructTraits unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary MessageLoop Created 4 years, 7 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
« cc/ipc/DEPS ('K') | « cc/ipc/traits_test_service.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/run_all_unittests.cc
diff --git a/cc/test/run_all_unittests.cc b/cc/test/run_all_unittests.cc
index 6d18d8d445b8120c9fdf6976efa97a1c7076927e..8aa3a1544ed16e7e79664852165dfa3fcabae6c0 100644
--- a/cc/test/run_all_unittests.cc
+++ b/cc/test/run_all_unittests.cc
@@ -4,11 +4,20 @@
#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_io_thread.h"
#include "cc/test/cc_test_suite.h"
+#include "mojo/edk/embedder/embedder.h" // nogncheck
Ken Rockot(use gerrit already) 2016/05/31 15:49:22 Guess we need to fix this target somehow. This is
Fady Samuel 2016/05/31 15:57:20 Looks like it's not actually necessary anymore. Re
+#include "mojo/edk/test/scoped_ipc_support.h" // nogncheck
int main(int argc, char** argv) {
cc::CCTestSuite test_suite(argc, argv);
+ mojo::edk::Init();
Ken Rockot(use gerrit already) 2016/05/31 15:49:22 If you're not doing actual IPC (i.e. no multiproce
Fady Samuel 2016/05/31 15:57:20 Done.
+ base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
+ std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support;
+ ipc_support.reset(
+ new mojo::edk::test::ScopedIPCSupport(test_io_thread.task_runner()));
+
return base::LaunchUnitTests(
argc,
argv,
« cc/ipc/DEPS ('K') | « cc/ipc/traits_test_service.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698