Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: components/test/run_all_unittests.cc

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Remove all duplicated calls to mojo::edk::init() Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test/DEPS ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 5 #include <memory>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/statistics_recorder.h" 11 #include "base/metrics/statistics_recorder.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/test/launcher/unit_test_launcher.h" 13 #include "base/test/launcher/unit_test_launcher.h"
14 #include "base/test/test_suite.h" 14 #include "base/test/test_suite.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "components/content_settings/core/common/content_settings_pattern.h" 16 #include "components/content_settings/core/common/content_settings_pattern.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "ui/base/resource/resource_bundle.h" 18 #include "ui/base/resource/resource_bundle.h"
19 #include "ui/base/ui_base_paths.h" 19 #include "ui/base/ui_base_paths.h"
20 #include "url/url_util.h" 20 #include "url/url_util.h"
21 21
22 #if !defined(OS_IOS) 22 #if !defined(OS_IOS)
23 #include "content/public/test/test_content_client_initializer.h" 23 #include "content/public/test/test_content_client_initializer.h"
24 #include "content/public/test/unittest_test_suite.h" 24 #include "content/public/test/unittest_test_suite.h"
25 #include "mojo/edk/embedder/embedder.h"
26 #include "ui/gl/test/gl_surface_test_support.h" 25 #include "ui/gl/test/gl_surface_test_support.h"
27 #endif 26 #endif
28 27
29 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID)
30 #include "base/android/jni_android.h" 29 #include "base/android/jni_android.h"
31 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" 30 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h"
32 #include "components/invalidation/impl/android/component_jni_registrar.h" 31 #include "components/invalidation/impl/android/component_jni_registrar.h"
33 #include "components/policy/core/browser/android/component_jni_registrar.h" 32 #include "components/policy/core/browser/android/component_jni_registrar.h"
34 #include "components/safe_json/android/component_jni_registrar.h" 33 #include "components/safe_json/android/component_jni_registrar.h"
35 #include "components/signin/core/browser/android/component_jni_registrar.h" 34 #include "components/signin/core/browser/android/component_jni_registrar.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 ComponentsTestSuite test_suite(argc, argv); 142 ComponentsTestSuite test_suite(argc, argv);
144 #endif 143 #endif
145 144
146 // The listener will set up common test environment for all components unit 145 // The listener will set up common test environment for all components unit
147 // tests. 146 // tests.
148 testing::TestEventListeners& listeners = 147 testing::TestEventListeners& listeners =
149 testing::UnitTest::GetInstance()->listeners(); 148 testing::UnitTest::GetInstance()->listeners();
150 listeners.Append(new ComponentsUnitTestEventListener()); 149 listeners.Append(new ComponentsUnitTestEventListener());
151 150
152 #if !defined(OS_IOS) 151 #if !defined(OS_IOS)
153 mojo::edk::Init();
154 return base::LaunchUnitTests(argc, argv, 152 return base::LaunchUnitTests(argc, argv,
155 base::Bind(&content::UnitTestTestSuite::Run, 153 base::Bind(&content::UnitTestTestSuite::Run,
156 base::Unretained(&test_suite))); 154 base::Unretained(&test_suite)));
157 #else 155 #else
158 return base::LaunchUnitTests( 156 return base::LaunchUnitTests(
159 argc, argv, base::Bind(&base::TestSuite::Run, 157 argc, argv, base::Bind(&base::TestSuite::Run,
160 base::Unretained(&test_suite))); 158 base::Unretained(&test_suite)));
161 #endif 159 #endif
162 } 160 }
OLDNEW
« no previous file with comments | « components/test/DEPS ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698