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

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

Issue 1999623002: [Autofill] Add typemap for autofill:FormFieldData and autofill::FormData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from dcheng Created 4 years, 6 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/components_tests.gyp ('k') | components/typemaps.gni » ('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 "mojo/edk/embedder/embedder.h"
24 #include "ui/gl/test/gl_surface_test_support.h" 25 #include "ui/gl/test/gl_surface_test_support.h"
25 #endif 26 #endif
26 27
27 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID)
28 #include "base/android/jni_android.h" 29 #include "base/android/jni_android.h"
29 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" 30 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h"
30 #include "components/gcm_driver/instance_id/scoped_use_fake_instance_id_android. h" 31 #include "components/gcm_driver/instance_id/scoped_use_fake_instance_id_android. h"
31 #include "components/invalidation/impl/android/component_jni_registrar.h" 32 #include "components/invalidation/impl/android/component_jni_registrar.h"
32 #include "components/policy/core/browser/android/component_jni_registrar.h" 33 #include "components/policy/core/browser/android/component_jni_registrar.h"
33 #include "components/safe_json/android/component_jni_registrar.h" 34 #include "components/safe_json/android/component_jni_registrar.h"
34 #include "components/signin/core/browser/android/component_jni_registrar.h" 35 #include "components/signin/core/browser/android/component_jni_registrar.h"
35 #include "components/web_restrictions/browser/mock_web_restrictions_client.h" 36 #include "components/web_restrictions/browser/mock_web_restrictions_client.h"
36 #include "content/public/test/test_utils.h" 37 #include "content/public/test/test_utils.h"
37 #include "net/android/net_jni_registrar.h" 38 #include "net/android/net_jni_registrar.h"
38 #include "ui/base/android/ui_base_jni_registrar.h" 39 #include "ui/base/android/ui_base_jni_registrar.h"
39 #include "ui/gfx/android/gfx_jni_registrar.h" 40 #include "ui/gfx/android/gfx_jni_registrar.h"
40 #endif 41 #endif
41 42
42 #if defined(OS_CHROMEOS)
43 #include "mojo/edk/embedder/embedder.h"
44 #endif
45
46 namespace { 43 namespace {
47 44
48 class ComponentsTestSuite : public base::TestSuite { 45 class ComponentsTestSuite : public base::TestSuite {
49 public: 46 public:
50 ComponentsTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {} 47 ComponentsTestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
51 48
52 private: 49 private:
53 void Initialize() override { 50 void Initialize() override {
54 base::TestSuite::Initialize(); 51 base::TestSuite::Initialize();
55 52
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 141
145 int main(int argc, char** argv) { 142 int main(int argc, char** argv) {
146 ComponentsTestSuite test_suite(argc, argv); 143 ComponentsTestSuite test_suite(argc, argv);
147 144
148 // 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
149 // tests. 146 // tests.
150 testing::TestEventListeners& listeners = 147 testing::TestEventListeners& listeners =
151 testing::UnitTest::GetInstance()->listeners(); 148 testing::UnitTest::GetInstance()->listeners();
152 listeners.Append(new ComponentsUnitTestEventListener()); 149 listeners.Append(new ComponentsUnitTestEventListener());
153 150
154 #if defined(OS_CHROMEOS) 151 #if !defined(OS_IOS)
155 mojo::edk::Init(); 152 mojo::edk::Init();
156 #endif 153 #endif
157 154
158 return base::LaunchUnitTests( 155 return base::LaunchUnitTests(
159 argc, argv, base::Bind(&base::TestSuite::Run, 156 argc, argv, base::Bind(&base::TestSuite::Run,
160 base::Unretained(&test_suite))); 157 base::Unretained(&test_suite)));
161 } 158 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/typemaps.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698