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

Unified Diff: components/video_capture/run_all_unittests.cc

Issue 1637793004: [WIP] Mojo Video Capture thingy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rockot@ comments Created 4 years, 10 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: components/video_capture/run_all_unittests.cc
diff --git a/components/video_capture/run_all_unittests.cc b/components/video_capture/run_all_unittests.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e5a7e6680770f3d4927b7c7d745989ef60516b34
--- /dev/null
+++ b/components/video_capture/run_all_unittests.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 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/bind.h"
+#include "base/command_line.h"
+#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_suite.h"
+#include "mojo/edk/embedder/embedder.h"
+
+int main(int argc, char** argv) {
+ base::TestSuite test_suite(argc, argv);
+
+ // Mojo must be initialized before any test in a singleton way.
+ base::CommandLine::ForCurrentProcess()->AppendSwitch("--use-new-edk");
Ken Rockot(use gerrit already) 2016/02/12 21:29:52 this flag is no longer needed
mcasas 2016/02/16 23:17:21 Done.
+ mojo::edk::Init();
+
+ return base::LaunchUnitTests(
+ argc, argv,
+ base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
+}

Powered by Google App Engine
This is Rietveld 408576698