Chromium Code Reviews| Index: chrome/test/base/run_all_unittests.cc |
| diff --git a/chrome/test/base/run_all_unittests.cc b/chrome/test/base/run_all_unittests.cc |
| index 60f2d3a8ed9fbe89715e41daa6504717bed834dc..4f3be78ccda955992ab135ced341cea8a8e2989d 100644 |
| --- a/chrome/test/base/run_all_unittests.cc |
| +++ b/chrome/test/base/run_all_unittests.cc |
| @@ -5,14 +5,21 @@ |
| #include "base/bind.h" |
| #include "base/command_line.h" |
| #include "base/test/launcher/unit_test_launcher.h" |
| +#include "base/test/test_io_thread.h" |
| #include "chrome/test/base/chrome_unit_test_suite.h" |
| #include "content/public/test/unittest_test_suite.h" |
| #include "mojo/edk/embedder/embedder.h" |
| +#include "mojo/edk/test/scoped_ipc_support.h" |
| int main(int argc, char **argv) { |
| content::UnitTestTestSuite test_suite(new ChromeUnitTestSuite(argc, argv)); |
| mojo::edk::Init(); |
| + base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
| + scoped_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support; |
|
Lei Zhang
2016/03/31 23:05:46
Just:
scoped_ptr<mojo::edk::test::ScopedIPCSuppor
Anand Mistry (off Chromium)
2016/03/31 23:10:37
Well, there's no reason for it to be a scoped_ptr,
|
| + ipc_support.reset( |
| + new mojo::edk::test::ScopedIPCSupport(test_io_thread.task_runner())); |
| + |
| return base::LaunchUnitTests( |
| argc, argv, base::Bind(&content::UnitTestTestSuite::Run, |
| base::Unretained(&test_suite))); |