blob: 910d2e615ffa63b6fd9aa09278e93ae9ecefbe98 [file] [log] [blame]
[email protected]64f5650c2013-01-11 05:35:091# 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
3# found in the LICENSE file.
4
5{
[email protected]62885ab2013-01-23 03:55:166 'conditions': [
7 ['OS != "ios"', {
8 'targets': [
9 {
10 'target_name': 'components_unittests',
11 'type': '<(gtest_target_type)',
12 'sources': [
[email protected]d3ff31f2013-08-29 23:48:3513 'autofill/core/common/form_data_unittest.cc',
14 'autofill/core/common/form_field_data_unittest.cc',
[email protected]28a66e252013-01-25 07:54:0215 'auto_login_parser/auto_login_parser_unittest.cc',
[email protected]0dd6f2032013-05-20 23:33:4016 'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
17 'browser_context_keyed_service/dependency_graph_unittest.cc',
[email protected]fb1397ce2013-08-13 22:55:0718 'json_schema/json_schema_validator_unittest.cc',
19 'json_schema/json_schema_validator_unittest_base.cc',
20 'json_schema/json_schema_validator_unittest_base.h',
[email protected]62885ab2013-01-23 03:55:1621 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0122 'sessions/serialized_navigation_entry_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1623 'test/run_all_unittests.cc',
[email protected]50ae9f12013-08-29 18:03:2224 # TODO(asvitkine): These should be tested on iOS too.
25 'variations/entropy_provider_unittest.cc',
26 'variations/metrics_util_unittest.cc',
27 'variations/variations_associated_data_unittest.cc',
28 'variations/variations_seed_processor_unittest.cc',
[email protected]28a66e252013-01-25 07:54:0229 'visitedlink/test/visitedlink_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0130 'webdata/encryptor/encryptor_password_mac_unittest.cc',
31 'webdata/encryptor/encryptor_unittest.cc',
[email protected]e41d0082013-05-16 04:37:5432 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1633 ],
34 'include_dirs': [
35 '..',
36 ],
37 'dependencies': [
38 '../base/base.gyp:test_support_base',
39 '../testing/gmock.gyp:gmock',
40 '../testing/gtest.gyp:gtest',
41
[email protected]d3ff31f2013-08-29 23:48:3542 # Dependencies of autofill
43 'autofill_core_common',
44
[email protected]28a66e252013-01-25 07:54:0245 # Dependencies of auto_login_parser
[email protected]da84fa42013-03-24 20:57:3646 'auto_login_parser',
47
[email protected]0dd6f2032013-05-20 23:33:4048 # Dependencies of browser_context_keyed_service
49 'browser_context_keyed_service',
50
[email protected]da84fa42013-03-24 20:57:3651 # Dependencies of encryptor
52 'encryptor',
[email protected]28a66e252013-01-25 07:54:0253
[email protected]fb1397ce2013-08-13 22:55:0754 # Dependencies of json_schema
55 'json_schema',
56
[email protected]62885ab2013-01-23 03:55:1657 # Dependencies of intercept_navigation_resource_throttle_unittest.cc
[email protected]73a759772013-07-02 20:47:4558 '../content/content.gyp:test_support_content',
[email protected]62885ab2013-01-23 03:55:1659 '../skia/skia.gyp:skia',
60 'navigation_interception',
[email protected]28a66e252013-01-25 07:54:0261
[email protected]183be4e2013-08-14 14:41:1062 # Dependencies of policy
63 'policy_component',
64
[email protected]40a7e412013-04-29 18:13:0165 # Dependencies of sessions
[email protected]40a7e412013-04-29 18:13:0166 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
67 'sessions',
68 'sessions_test_support',
69
[email protected]50ae9f12013-08-29 18:03:2270 # Dependencies of variations
71 'variations',
72
[email protected]28a66e252013-01-25 07:54:0273 # Dependencies of visitedlink
[email protected]da84fa42013-03-24 20:57:3674 'visitedlink_browser',
75 'visitedlink_renderer',
[email protected]28a66e252013-01-25 07:54:0276 '../content/content_resources.gyp:content_resources',
[email protected]e41d0082013-05-16 04:37:5477
78 'web_modal',
[email protected]62885ab2013-01-23 03:55:1679 ],
[email protected]c03ef212013-01-24 23:44:3080 'conditions': [
[email protected]e41d0082013-05-16 04:37:5481 ['OS == "android"', {
82 'sources!': [
83 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
84 ],
85 'dependencies!': [
86 'web_modal',
87 ],
88 }],
[email protected]c03ef212013-01-24 23:44:3089 ['OS == "android" and gtest_target_type == "shared_library"', {
90 'dependencies': [
91 '../testing/android/native_test.gyp:native_test_native_code',
92 ]
93 }],
[email protected]c5c9e6dc2013-01-30 12:46:5894 ['OS=="win" and win_use_allocator_shim==1', {
95 'dependencies': [
96 '../base/allocator/allocator.gyp:allocator',
97 ],
98 }],
[email protected]89abf342013-04-30 09:20:4099 ['android_webview_build == 0', {
100 'dependencies': [
101 '../sync/sync.gyp:sync',
102 ],
103 }],
[email protected]19e9de232013-07-23 20:21:06104 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
105 'dependencies': [
106 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
107 ],
108 'link_settings': {
109 'ldflags': ['-rdynamic'],
110 },
111 }],
[email protected]183be4e2013-08-14 14:41:10112 ['configuration_policy==1', {
113 'sources': [
114 'policy/core/common/policy_schema_unittest.cc',
115 ],
116 }],
[email protected]c03ef212013-01-24 23:44:30117 ],
[email protected]aa6eacc2013-02-09 21:18:42118 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119 'msvs_disabled_warnings': [4267, ],
[email protected]b1babd92013-04-05 18:29:42120 },
121 {
122 'target_name': 'components_perftests',
123 'type': '<(gtest_target_type)',
124 'dependencies': [
125 '../base/base.gyp:base',
126 '../base/base.gyp:test_support_perf',
[email protected]73a759772013-07-02 20:47:45127 '../content/content.gyp:test_support_content',
[email protected]b1babd92013-04-05 18:29:42128 '../testing/gtest.gyp:gtest',
129 '../ui/compositor/compositor.gyp:compositor',
130 'visitedlink_browser',
131 ],
132 'include_dirs': [
133 '..',
134 ],
135 'sources': [
136 'visitedlink/test/visitedlink_perftest.cc',
137 ],
138 'conditions': [
139 ['OS == "android" and gtest_target_type == "shared_library"', {
140 'dependencies': [
141 '../testing/android/native_test.gyp:native_test_native_code',
142 ],
143 }],
144 ],
145 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
146 'msvs_disabled_warnings': [ 4267, ],
147 },
[email protected]64f5650c2013-01-11 05:35:09148 ],
[email protected]c03ef212013-01-24 23:44:30149 'conditions': [
150 ['OS == "android" and gtest_target_type == "shared_library"', {
151 'targets': [
152 {
153 'target_name': 'components_unittests_apk',
154 'type': 'none',
155 'dependencies': [
156 'components_unittests',
157 ],
158 'variables': {
159 'test_suite_name': 'components_unittests',
160 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
161 },
162 'includes': [ '../build/apk_test.gypi' ],
163 },
164 ],
165 }],
166 ],
[email protected]62885ab2013-01-23 03:55:16167 }],
168 ],
[email protected]64f5650c2013-01-11 05:35:09169}