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

Unified Diff: gpu/command_buffer/common/unittest_main.cc

Issue 2019833002: Implement StructTraits for various cc and gpu types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DEPS file 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
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)));
« no previous file with comments | « gpu/command_buffer/common/DEPS ('k') | gpu/gpu.gyp » ('j') | gpu/ipc/common/mailbox.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698