OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/path_service.h" | 9 #include "base/path_service.h" |
9 #include "base/test/launcher/unit_test_launcher.h" | 10 #include "base/test/launcher/unit_test_launcher.h" |
10 #include "base/test/test_io_thread.h" | 11 #include "base/test/test_io_thread.h" |
11 #include "content/public/common/content_client.h" | 12 #include "content/public/common/content_client.h" |
12 #include "content/public/test/content_test_suite_base.h" | 13 #include "content/public/test/content_test_suite_base.h" |
13 #include "content/public/test/unittest_test_suite.h" | 14 #include "content/public/test/unittest_test_suite.h" |
14 #include "extensions/common/constants.h" | 15 #include "extensions/common/constants.h" |
15 #include "extensions/common/extension_paths.h" | 16 #include "extensions/common/extension_paths.h" |
16 #include "extensions/test/test_extensions_client.h" | 17 #include "extensions/test/test_extensions_client.h" |
17 #include "mojo/edk/embedder/embedder.h" | 18 #include "mojo/edk/embedder/embedder.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 mojo::edk::Init(); | 117 mojo::edk::Init(); |
117 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); | 118 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
118 mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); | 119 mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); |
119 | 120 |
120 return base::LaunchUnitTests(argc, | 121 return base::LaunchUnitTests(argc, |
121 argv, | 122 argv, |
122 base::Bind(&content::UnitTestTestSuite::Run, | 123 base::Bind(&content::UnitTestTestSuite::Run, |
123 base::Unretained(&test_suite))); | 124 base::Unretained(&test_suite))); |
124 } | 125 } |
OLD | NEW |