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/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/test/launcher/unit_test_launcher.h" | 9 #include "base/test/launcher/unit_test_launcher.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
11 #include "content/public/test/content_test_suite_base.h" | 11 #include "content/public/test/content_test_suite_base.h" |
12 #include "content/public/test/unittest_test_suite.h" | 12 #include "content/public/test/unittest_test_suite.h" |
13 #include "extensions/common/constants.h" | 13 #include "extensions/common/constants.h" |
14 #include "extensions/common/extension_paths.h" | 14 #include "extensions/common/extension_paths.h" |
15 #include "extensions/test/test_extensions_client.h" | 15 #include "extensions/test/test_extensions_client.h" |
16 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 16 #include "mojo/edk/embedder/embedder.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 #include "ui/gl/test/gl_surface_test_support.h" | 18 #include "ui/gl/test/gl_surface_test_support.h" |
19 #include "url/url_util.h" | 19 #include "url/url_util.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const int kNumExtensionStandardURLSchemes = 2; | 23 const int kNumExtensionStandardURLSchemes = 2; |
24 const url::SchemeWithType kExtensionStandardURLSchemes[ | 24 const url::SchemeWithType kExtensionStandardURLSchemes[ |
25 kNumExtensionStandardURLSchemes] = { | 25 kNumExtensionStandardURLSchemes] = { |
26 {extensions::kExtensionScheme, url::SCHEME_WITHOUT_PORT}, | 26 {extensions::kExtensionScheme, url::SCHEME_WITHOUT_PORT}, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 ui::ResourceBundle::CleanupSharedInstance(); | 104 ui::ResourceBundle::CleanupSharedInstance(); |
105 content::ContentTestSuiteBase::Shutdown(); | 105 content::ContentTestSuiteBase::Shutdown(); |
106 } | 106 } |
107 | 107 |
108 } // namespace | 108 } // namespace |
109 | 109 |
110 int main(int argc, char** argv) { | 110 int main(int argc, char** argv) { |
111 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); | 111 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); |
112 | 112 |
113 mojo::embedder::Init(); | 113 mojo::edk::Init(); |
114 return base::LaunchUnitTests(argc, | 114 return base::LaunchUnitTests(argc, |
115 argv, | 115 argv, |
116 base::Bind(&content::UnitTestTestSuite::Run, | 116 base::Bind(&content::UnitTestTestSuite::Run, |
117 base::Unretained(&test_suite))); | 117 base::Unretained(&test_suite))); |
118 } | 118 } |
OLD | NEW |