Changed word wrapping so that the layout won't break when warnings involve long file...
[chromium-blink-merge.git] / components / components_tests.gypi
blob61346d07a88af4794f075d682b510d7bff7956c8
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             'auto_login_parser/auto_login_parser_unittest.cc',
14             'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
15             'browser_context_keyed_service/dependency_graph_unittest.cc',
16             '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',
19             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
20             'sessions/serialized_navigation_entry_unittest.cc',
21             'test/run_all_unittests.cc',
22             'visitedlink/test/visitedlink_unittest.cc',
23             'webdata/encryptor/encryptor_password_mac_unittest.cc',
24             'webdata/encryptor/encryptor_unittest.cc',
25             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
26           ],
27           'include_dirs': [
28             '..',
29           ],
30           'dependencies': [
31             '../base/base.gyp:test_support_base',
32             '../testing/gmock.gyp:gmock',
33             '../testing/gtest.gyp:gtest',
35             # Dependencies of auto_login_parser
36             'auto_login_parser',
38             # Dependencies of browser_context_keyed_service
39             'browser_context_keyed_service',
41             # Dependencies of encryptor
42             'encryptor',
44             # Dependencies of json_schema
45             'json_schema',
47             # Dependencies of intercept_navigation_resource_throttle_unittest.cc
48             '../content/content.gyp:test_support_content',
49             '../skia/skia.gyp:skia',
50             'navigation_interception',
52             # Dependencies of policy
53             'policy_component',
55             # Dependencies of sessions
56             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
57             'sessions',
58             'sessions_test_support',
60             # Dependencies of visitedlink
61             'visitedlink_browser',
62             'visitedlink_renderer',
63             '../content/content_resources.gyp:content_resources',
65             'web_modal',
66           ],
67           'conditions': [
68             ['OS == "android"', {
69               'sources!': [
70                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
71               ],
72               'dependencies!': [
73                 'web_modal',
74               ],
75             }],
76             ['OS == "android" and gtest_target_type == "shared_library"', {
77               'dependencies': [
78                 '../testing/android/native_test.gyp:native_test_native_code',
79               ]
80             }],
81             ['OS=="win" and win_use_allocator_shim==1', {
82               'dependencies': [
83                 '../base/allocator/allocator.gyp:allocator',
84               ],
85             }],
86             ['android_webview_build == 0', {
87               'dependencies': [
88                 '../sync/sync.gyp:sync',
89               ],
90             }],
91             ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
92             'dependencies': [
93                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
94             ],
95             'link_settings': {
96                 'ldflags': ['-rdynamic'],
97             },
98             }],
99             ['configuration_policy==1', {
100               'sources': [
101                 'policy/core/common/policy_schema_unittest.cc',
102               ],
103             }],
104           ],
105           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
106           'msvs_disabled_warnings': [4267, ],
107         },
108         {
109           'target_name': 'components_perftests',
110           'type': '<(gtest_target_type)',
111           'dependencies': [
112             '../base/base.gyp:base',
113             '../base/base.gyp:test_support_perf',
114             '../content/content.gyp:test_support_content',
115             '../testing/gtest.gyp:gtest',
116             '../ui/compositor/compositor.gyp:compositor',
117             'visitedlink_browser',
118           ],
119          'include_dirs': [
120            '..',
121          ],
122          'sources': [
123            'visitedlink/test/visitedlink_perftest.cc',
124          ],
125          'conditions': [
126            ['OS == "android" and gtest_target_type == "shared_library"', {
127              'dependencies': [
128                '../testing/android/native_test.gyp:native_test_native_code',
129              ],
130            }],
131          ],
132          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
133          'msvs_disabled_warnings': [ 4267, ],
134         },
135       ],
136       'conditions': [
137         ['OS == "android" and gtest_target_type == "shared_library"', {
138           'targets': [
139             {
140               'target_name': 'components_unittests_apk',
141               'type': 'none',
142               'dependencies': [
143                 'components_unittests',
144               ],
145               'variables': {
146                 'test_suite_name': 'components_unittests',
147                 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
148               },
149               'includes': [ '../build/apk_test.gypi' ],
150             },
151           ],
152         }],
153       ],
154     }],
155   ],