OLD | NEW |
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/edk/embedder/test_embedder.h" | 8 #include "mojo/edk/embedder/test_embedder.h" |
9 #include "mojo/edk/test/test_support_impl.h" | 9 #include "mojo/edk/test/test_support_impl.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::test::InitWithSimplePlatformSupport(); | 20 mojo::embedder::test::InitWithSimplePlatformSupport(); |
21 mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl()); | 21 mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl()); |
22 | 22 |
23 return base::LaunchUnitTests( | 23 return base::LaunchUnitTests( |
24 argc, argv, base::Bind(&base::TestSuite::Run, | 24 argc, |
25 base::Unretained(&test_suite))); | 25 argv, |
| 26 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); |
26 } | 27 } |
OLD | NEW |