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

Unified Diff: chromecast/app/cast_unittests_main.cc

Issue 2617713002: [WIP] Add DCHECK for mojo::edk::Init().
Patch Set: test Created 3 years, 11 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
« no previous file with comments | « chromecast/app/cast_test_launcher.cc ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/app/cast_unittests_main.cc
diff --git a/chromecast/app/cast_unittests_main.cc b/chromecast/app/cast_unittests_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..836f800da898eca54bf88ff5273481fe68a90637
--- /dev/null
+++ b/chromecast/app/cast_unittests_main.cc
@@ -0,0 +1,15 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/test/test_io_thread.h"
+#include "chromecast/app/cast_test_launcher.h"
+#include "mojo/edk/embedder/embedder.h"
+#include "mojo/edk/test/scoped_ipc_support.h"
+
+int main(int argc, char* argv[]) {
+ mojo::edk::Init();
+ base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
+ mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner());
+ return chromecast::shell::LaunchTests(argc, argv);
+}
« no previous file with comments | « chromecast/app/cast_test_launcher.cc ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698