| Index: gpu/command_buffer/common/unittest_main.cc
|
| diff --git a/gpu/command_buffer/common/unittest_main.cc b/gpu/command_buffer/common/unittest_main.cc
|
| index 6e907d5053392a4f94333a237bfc8626eb2d6fc0..caed0bf008eb7ff116fb1b3a50cbb172ca10e454 100644
|
| --- a/gpu/command_buffer/common/unittest_main.cc
|
| +++ b/gpu/command_buffer/common/unittest_main.cc
|
| @@ -5,8 +5,11 @@
|
| #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 "base/test/test_suite.h"
|
| #include "build/build_config.h"
|
| +#include "mojo/edk/embedder/embedder.h" // nogncheck
|
| +#include "mojo/edk/test/scoped_ipc_support.h" // nogncheck
|
|
|
| #if defined(OS_ANDROID)
|
| #include "gpu/ipc/client/android/in_process_surface_texture_manager.h"
|
| @@ -45,6 +48,12 @@ int main(int argc, char** argv) {
|
| base::CommandLine::Init(argc, argv);
|
| GpuTestSuite test_suite(argc, argv);
|
|
|
| + mojo::edk::Init();
|
| + 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,
|
| base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
|
|
|