blob: 1cd55d2f613db610919a0dfba0b8892fc71a0e1d [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]28a66e252013-01-25 07:54:0213 'auto_login_parser/auto_login_parser_unittest.cc',
[email protected]0dd6f2032013-05-20 23:33:4014 'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
15 'browser_context_keyed_service/dependency_graph_unittest.cc',
[email protected]fb1397ce2013-08-13 22:55:0716 'json_schema/json_schema_validator_unittest.cc',
17 'json_schema/json_schema_validator_unittest_base.cc',
18 'json_schema/json_schema_validator_unittest_base.h',
[email protected]62885ab2013-01-23 03:55:1619 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0120 'sessions/serialized_navigation_entry_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1621 'test/run_all_unittests.cc',
[email protected]50ae9f12013-08-29 18:03:2222 # TODO(asvitkine): These should be tested on iOS too.
23 'variations/entropy_provider_unittest.cc',
24 'variations/metrics_util_unittest.cc',
25 'variations/variations_associated_data_unittest.cc',
26 'variations/variations_seed_processor_unittest.cc',
[email protected]28a66e252013-01-25 07:54:0227 'visitedlink/test/visitedlink_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0128 'webdata/encryptor/encryptor_password_mac_unittest.cc',
29 'webdata/encryptor/encryptor_unittest.cc',
[email protected]e41d0082013-05-16 04:37:5430 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1631 ],
32 'include_dirs': [
33 '..',
34 ],
35 'dependencies': [
36 '../base/base.gyp:test_support_base',
37 '../testing/gmock.gyp:gmock',
38 '../testing/gtest.gyp:gtest',
39
[email protected]28a66e252013-01-25 07:54:0240 # Dependencies of auto_login_parser
[email protected]da84fa42013-03-24 20:57:3641 'auto_login_parser',
42
[email protected]0dd6f2032013-05-20 23:33:4043 # Dependencies of browser_context_keyed_service
44 'browser_context_keyed_service',
45
[email protected]da84fa42013-03-24 20:57:3646 # Dependencies of encryptor
47 'encryptor',
[email protected]28a66e252013-01-25 07:54:0248
[email protected]fb1397ce2013-08-13 22:55:0749 # Dependencies of json_schema
50 'json_schema',
51
[email protected]62885ab2013-01-23 03:55:1652 # Dependencies of intercept_navigation_resource_throttle_unittest.cc
[email protected]73a759772013-07-02 20:47:4553 '../content/content.gyp:test_support_content',
[email protected]62885ab2013-01-23 03:55:1654 '../skia/skia.gyp:skia',
55 'navigation_interception',
[email protected]28a66e252013-01-25 07:54:0256
[email protected]183be4e2013-08-14 14:41:1057 # Dependencies of policy
58 'policy_component',
59
[email protected]40a7e412013-04-29 18:13:0160 # Dependencies of sessions
[email protected]40a7e412013-04-29 18:13:0161 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
62 'sessions',
63 'sessions_test_support',
64
[email protected]50ae9f12013-08-29 18:03:2265 # Dependencies of variations
66 'variations',
67
[email protected]28a66e252013-01-25 07:54:0268 # Dependencies of visitedlink
[email protected]da84fa42013-03-24 20:57:3669 'visitedlink_browser',
70 'visitedlink_renderer',
[email protected]28a66e252013-01-25 07:54:0271 '../content/content_resources.gyp:content_resources',
[email protected]e41d0082013-05-16 04:37:5472
73 'web_modal',
[email protected]62885ab2013-01-23 03:55:1674 ],
[email protected]c03ef212013-01-24 23:44:3075 'conditions': [
[email protected]e41d0082013-05-16 04:37:5476 ['OS == "android"', {
77 'sources!': [
78 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
79 ],
80 'dependencies!': [
81 'web_modal',
82 ],
83 }],
[email protected]c03ef212013-01-24 23:44:3084 ['OS == "android" and gtest_target_type == "shared_library"', {
85 'dependencies': [
86 '../testing/android/native_test.gyp:native_test_native_code',
87 ]
88 }],
[email protected]c5c9e6dc2013-01-30 12:46:5889 ['OS=="win" and win_use_allocator_shim==1', {
90 'dependencies': [
91 '../base/allocator/allocator.gyp:allocator',
92 ],
93 }],
[email protected]89abf342013-04-30 09:20:4094 ['android_webview_build == 0', {
95 'dependencies': [
96 '../sync/sync.gyp:sync',
97 ],
98 }],
[email protected]19e9de232013-07-23 20:21:0699 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
100 'dependencies': [
101 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
102 ],
103 'link_settings': {
104 'ldflags': ['-rdynamic'],
105 },
106 }],
[email protected]183be4e2013-08-14 14:41:10107 ['configuration_policy==1', {
108 'sources': [
109 'policy/core/common/policy_schema_unittest.cc',
110 ],
111 }],
[email protected]c03ef212013-01-24 23:44:30112 ],
[email protected]aa6eacc2013-02-09 21:18:42113 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
114 'msvs_disabled_warnings': [4267, ],
[email protected]b1babd92013-04-05 18:29:42115 },
116 {
117 'target_name': 'components_perftests',
118 'type': '<(gtest_target_type)',
119 'dependencies': [
120 '../base/base.gyp:base',
121 '../base/base.gyp:test_support_perf',
[email protected]73a759772013-07-02 20:47:45122 '../content/content.gyp:test_support_content',
[email protected]b1babd92013-04-05 18:29:42123 '../testing/gtest.gyp:gtest',
124 '../ui/compositor/compositor.gyp:compositor',
125 'visitedlink_browser',
126 ],
127 'include_dirs': [
128 '..',
129 ],
130 'sources': [
131 'visitedlink/test/visitedlink_perftest.cc',
132 ],
133 'conditions': [
134 ['OS == "android" and gtest_target_type == "shared_library"', {
135 'dependencies': [
136 '../testing/android/native_test.gyp:native_test_native_code',
137 ],
138 }],
139 ],
140 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
141 'msvs_disabled_warnings': [ 4267, ],
142 },
[email protected]64f5650c2013-01-11 05:35:09143 ],
[email protected]c03ef212013-01-24 23:44:30144 'conditions': [
145 ['OS == "android" and gtest_target_type == "shared_library"', {
146 'targets': [
147 {
148 'target_name': 'components_unittests_apk',
149 'type': 'none',
150 'dependencies': [
151 'components_unittests',
152 ],
153 'variables': {
154 'test_suite_name': 'components_unittests',
155 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
156 },
157 'includes': [ '../build/apk_test.gypi' ],
158 },
159 ],
160 }],
161 ],
[email protected]62885ab2013-01-23 03:55:16162 }],
163 ],
[email protected]64f5650c2013-01-11 05:35:09164}