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

Side by Side Diff: mojo/common/test/run_all_unittests.cc

Issue 231353002: Make mojo_system static and mojo_system_impl a component, never use both (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix accidental change to .gitmodules Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/test/launcher/unit_test_launcher.h" 6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_suite.h" 7 #include "base/test/test_suite.h"
8 #include "mojo/common/test/test_support_impl.h" 8 #include "mojo/common/test/test_support_impl.h"
9 #include "mojo/embedder/embedder.h" 9 #include "mojo/embedder/embedder.h"
10 #include "mojo/public/tests/test_support_private.h" 10 #include "mojo/public/tests/test_support_private.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 int main(int argc, char** argv) { 13 int main(int argc, char** argv) {
14 // Silence death test thread warnings on Linux. We can afford to run our death 14 // Silence death test thread warnings on Linux. We can afford to run our death
15 // tests a little more slowly (< 10 ms per death test on a Z620). 15 // tests a little more slowly (< 10 ms per death test on a Z620).
16 testing::GTEST_FLAG(death_test_style) = "threadsafe"; 16 testing::GTEST_FLAG(death_test_style) = "threadsafe";
17 17
18 base::TestSuite test_suite(argc, argv); 18 base::TestSuite test_suite(argc, argv);
19 19
20 mojo::embedder::Init();
viettrungluu 2014/04/09 23:06:44 "
DaveMoore 2014/04/10 18:58:58 Done.
21 mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl()); 20 mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl());
22 21
23 return base::LaunchUnitTests( 22 return base::LaunchUnitTests(
24 argc, argv, base::Bind(&base::TestSuite::Run, 23 argc, argv, base::Bind(&base::TestSuite::Run,
25 base::Unretained(&test_suite))); 24 base::Unretained(&test_suite)));
26 } 25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698