| 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 "base/test/test_suite.h" | 10 #include "base/test/test_suite.h" |
| 11 #include "content/public/test/unittest_test_suite.h" | 11 #include "content/public/test/unittest_test_suite.h" |
| 12 #include "extensions/common/extension_paths.h" | 12 #include "extensions/common/extension_paths.h" |
| 13 #include "extensions/test/test_extensions_client.h" | 13 #include "extensions/test/test_extensions_client.h" |
| 14 #include "mojo/embedder/embedder.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 class ExtensionsTestSuite : public base::TestSuite { | 19 class ExtensionsTestSuite : public base::TestSuite { |
| 19 public: | 20 public: |
| 20 ExtensionsTestSuite(int argc, char** argv); | 21 ExtensionsTestSuite(int argc, char** argv); |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 // base::TestSuite: | 24 // base::TestSuite: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 void ExtensionsTestSuite::Shutdown() { | 50 void ExtensionsTestSuite::Shutdown() { |
| 50 ResourceBundle::CleanupSharedInstance(); | 51 ResourceBundle::CleanupSharedInstance(); |
| 51 base::TestSuite::Shutdown(); | 52 base::TestSuite::Shutdown(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace | 55 } // namespace |
| 55 | 56 |
| 56 int main(int argc, char** argv) { | 57 int main(int argc, char** argv) { |
| 57 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); | 58 content::UnitTestTestSuite test_suite(new ExtensionsTestSuite(argc, argv)); |
| 58 | 59 |
| 60 mojo::embedder::Init(); |
| 59 return base::LaunchUnitTests(argc, | 61 return base::LaunchUnitTests(argc, |
| 60 argv, | 62 argv, |
| 61 base::Bind(&content::UnitTestTestSuite::Run, | 63 base::Bind(&content::UnitTestTestSuite::Run, |
| 62 base::Unretained(&test_suite))); | 64 base::Unretained(&test_suite))); |
| 63 } | 65 } |
| OLD | NEW |