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.
10 'target_name': 'components_unittests',
11 'type': '<(gtest_target_type)',
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',
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
48 # Dependencies of browser_context_keyed_service
49 'browser_context_keyed_service',
51 # Dependencies of encryptor
54 # Dependencies of 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
65 # Dependencies of sessions
66 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
68 'sessions_test_support',
70 # Dependencies of variations
73 # Dependencies of visitedlink
74 'visitedlink_browser',
75 'visitedlink_renderer',
76 '../content/content_resources.gyp:content_resources',
83 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
89 ['OS == "android" and gtest_target_type == "shared_library"', {
91 '../testing/android/native_test.gyp:native_test_native_code',
94 ['OS=="win" and win_use_allocator_shim==1', {
96 '../base/allocator/allocator.gyp:allocator',
99 ['android_webview_build == 0', {
101 '../sync/sync.gyp:sync',
104 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
106 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
109 'ldflags': ['-rdynamic'],
112 ['configuration_policy==1', {
114 'policy/core/common/policy_schema_unittest.cc',
118 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119 'msvs_disabled_warnings': [4267, ],
122 'target_name': 'components_perftests',
123 'type': '<(gtest_target_type)',
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',
136 'visitedlink/test/visitedlink_perftest.cc',
139 ['OS == "android" and gtest_target_type == "shared_library"', {
141 '../testing/android/native_test.gyp:native_test_native_code',
145 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
146 'msvs_disabled_warnings': [ 4267, ],
150 ['OS == "android" and gtest_target_type == "shared_library"', {
153 'target_name': 'components_unittests_apk',
156 'components_unittests',
159 'test_suite_name': 'components_unittests',
160 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
162 'includes': [ '../build/apk_test.gypi' ],