| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/metrics/statistics_recorder.h" | 8 #include "base/metrics/statistics_recorder.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/test/launcher/unit_test_launcher.h" | 10 #include "base/test/launcher/unit_test_launcher.h" |
| 11 #include "base/test/test_suite.h" | 11 #include "base/test/test_suite.h" |
| 12 #include "components/content_settings/core/common/content_settings_pattern.h" | 12 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 13 #include "content/public/test/test_content_client_initializer.h" | 13 #include "content/public/test/test_content_client_initializer.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/base/ui_base_paths.h" | 16 #include "ui/base/ui_base_paths.h" |
| 17 #include "url/url_util.h" | 17 #include "url/url_util.h" |
| 18 | 18 |
| 19 #if !defined(OS_IOS) | 19 #if !defined(OS_IOS) |
| 20 #include "ui/gl/gl_surface.h" | 20 #include "ui/gl/gl_surface.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 #if defined(OS_ANDROID) | 23 #if defined(OS_ANDROID) |
| 24 #include "base/android/jni_android.h" | 24 #include "base/android/jni_android.h" |
| 25 #include "components/invalidation/android/component_jni_registrar.h" | 25 #include "components/invalidation/impl/android/component_jni_registrar.h" |
| 26 #include "ui/base/android/ui_base_jni_registrar.h" | 26 #include "ui/base/android/ui_base_jni_registrar.h" |
| 27 #include "ui/gfx/android/gfx_jni_registrar.h" | 27 #include "ui/gfx/android/gfx_jni_registrar.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 class ComponentsTestSuite : public base::TestSuite { | 32 class ComponentsTestSuite : public base::TestSuite { |
| 33 public: | 33 public: |
| 34 ComponentsTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} | 34 ComponentsTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} |
| 35 | 35 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // The listener will set up common test environment for all components unit | 118 // The listener will set up common test environment for all components unit |
| 119 // tests. | 119 // tests. |
| 120 testing::TestEventListeners& listeners = | 120 testing::TestEventListeners& listeners = |
| 121 testing::UnitTest::GetInstance()->listeners(); | 121 testing::UnitTest::GetInstance()->listeners(); |
| 122 listeners.Append(new ComponentsUnitTestEventListener()); | 122 listeners.Append(new ComponentsUnitTestEventListener()); |
| 123 | 123 |
| 124 return base::LaunchUnitTests( | 124 return base::LaunchUnitTests( |
| 125 argc, argv, base::Bind(&base::TestSuite::Run, | 125 argc, argv, base::Bind(&base::TestSuite::Run, |
| 126 base::Unretained(&test_suite))); | 126 base::Unretained(&test_suite))); |
| 127 } | 127 } |
| OLD | NEW |