Chromium Code Reviews| 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))); |
| +} |