cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / components / components_tests.gypi
blob910d2e615ffa63b6fd9aa09278e93ae9ecefbe98
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
3 # found in the LICENSE file.
6   'conditions': [
7     ['OS != "ios"', {
8       'targets': [
9         {
10           'target_name': 'components_unittests',
11           'type': '<(gtest_target_type)',
12           'sources': [
13             'autofill/core/common/form_data_unittest.cc',
14             'autofill/core/common/form_field_data_unittest.cc',
15             'auto_login_parser/auto_login_parser_unittest.cc',
16             'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
17             'browser_context_keyed_service/dependency_graph_unittest.cc',
18             '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',
21             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
22             'sessions/serialized_navigation_entry_unittest.cc',
23             'test/run_all_unittests.cc',
24             # 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',
29             'visitedlink/test/visitedlink_unittest.cc',
30             'webdata/encryptor/encryptor_password_mac_unittest.cc',
31             'webdata/encryptor/encryptor_unittest.cc',
32             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
33           ],
34           'include_dirs': [
35             '..',
36           ],
37           'dependencies': [
38             '../base/base.gyp:test_support_base',
39             '../testing/gmock.gyp:gmock',
40             '../testing/gtest.gyp:gtest',
42             # Dependencies of autofill
43             'autofill_core_common',
45             # Dependencies of auto_login_parser
46             'auto_login_parser',
48             # Dependencies of browser_context_keyed_service
49             'browser_context_keyed_service',
51             # Dependencies of encryptor
52             'encryptor',
54             # Dependencies of json_schema
55             'json_schema',
57             # Dependencies of intercept_navigation_resource_throttle_unittest.cc
58             '../content/content.gyp:test_support_content',
59             '../skia/skia.gyp:skia',
60             'navigation_interception',
62             # Dependencies of policy
63             'policy_component',
65             # Dependencies of sessions
66             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
67             'sessions',
68             'sessions_test_support',
70             # Dependencies of variations
71             'variations',
73             # Dependencies of visitedlink
74             'visitedlink_browser',
75             'visitedlink_renderer',
76             '../content/content_resources.gyp:content_resources',
78             'web_modal',
79           ],
80           'conditions': [
81             ['OS == "android"', {
82               'sources!': [
83                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
84               ],
85               'dependencies!': [
86                 'web_modal',
87               ],
88             }],
89             ['OS == "android" and gtest_target_type == "shared_library"', {
90               'dependencies': [
91                 '../testing/android/native_test.gyp:native_test_native_code',
92               ]
93             }],
94             ['OS=="win" and win_use_allocator_shim==1', {
95               'dependencies': [
96                 '../base/allocator/allocator.gyp:allocator',
97               ],
98             }],
99             ['android_webview_build == 0', {
100               'dependencies': [
101                 '../sync/sync.gyp:sync',
102               ],
103             }],
104             ['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             }],
112             ['configuration_policy==1', {
113               'sources': [
114                 'policy/core/common/policy_schema_unittest.cc',
115               ],
116             }],
117           ],
118           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119           'msvs_disabled_warnings': [4267, ],
120         },
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',
127             '../content/content.gyp:test_support_content',
128             '../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         },
148       ],
149       '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       ],
167     }],
168   ],