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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/test/launcher/unit_test_launcher.h" | 11 #include "base/test/launcher/unit_test_launcher.h" |
12 #include "base/test/test_io_thread.h" | 12 #include "base/test/test_io_thread.h" |
13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
14 #include "content/public/test/content_test_suite_base.h" | 14 #include "content/public/test/content_test_suite_base.h" |
15 #include "content/public/test/unittest_test_suite.h" | 15 #include "content/public/test/unittest_test_suite.h" |
16 #include "extensions/common/constants.h" | 16 #include "extensions/common/constants.h" |
17 #include "extensions/common/extension_paths.h" | 17 #include "extensions/common/extension_paths.h" |
18 #include "extensions/test/test_extensions_client.h" | 18 #include "extensions/test/test_extensions_client.h" |
19 #include "mojo/edk/embedder/embedder.h" | |
20 #include "mojo/edk/test/scoped_ipc_support.h" | 19 #include "mojo/edk/test/scoped_ipc_support.h" |
21 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
22 #include "ui/gl/test/gl_surface_test_support.h" | 21 #include "ui/gl/test/gl_surface_test_support.h" |
23 #include "url/url_util.h" | 22 #include "url/url_util.h" |
24 | 23 |
25 namespace { | 24 namespace { |
26 | 25 |
27 const int kNumExtensionStandardURLSchemes = 2; | 26 const int kNumExtensionStandardURLSchemes = 2; |
28 const url::SchemeWithType kExtensionStandardURLSchemes[ | 27 const url::SchemeWithType kExtensionStandardURLSchemes[ |
29 kNumExtensionStandardURLSchemes] = { | 28 kNumExtensionStandardURLSchemes] = { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 107 |
109 ui::ResourceBundle::CleanupSharedInstance(); | 108 ui::ResourceBundle::CleanupSharedInstance(); |
110 content::ContentTestSuiteBase::Shutdown(); | 109 content::ContentTestSuiteBase::Shutdown(); |
111 } | 110 } |
112 | 111 |
113 } // namespace | 112 } // namespace |
114 | 113 |
115 int main(int argc, char** argv) { | 114 int main(int argc, char** argv) { |
116 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); | 115 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); |
117 | 116 |
118 mojo::edk::Init(); | |
119 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); | 117 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
120 mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); | 118 mojo::edk::test::ScopedIPCSupport ipc_support(test_io_thread.task_runner()); |
121 | 119 |
122 return base::LaunchUnitTests(argc, | 120 return base::LaunchUnitTests(argc, |
123 argv, | 121 argv, |
124 base::Bind(&content::UnitTestTestSuite::Run, | 122 base::Bind(&content::UnitTestTestSuite::Run, |
125 base::Unretained(&test_suite))); | 123 base::Unretained(&test_suite))); |
126 } | 124 } |
OLD | NEW |