[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 6 | 'conditions': [ |
| 7 | ['OS != "ios"', { |
| 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'components_unittests', |
| 11 | 'type': '<(gtest_target_type)', |
| 12 | 'sources': [ |
[email protected] | d3ff31f | 2013-08-29 23:48:35 | [diff] [blame^] | 13 | 'autofill/core/common/form_data_unittest.cc', |
| 14 | 'autofill/core/common/form_field_data_unittest.cc', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 15 | 'auto_login_parser/auto_login_parser_unittest.cc', |
[email protected] | 0dd6f203 | 2013-05-20 23:33:40 | [diff] [blame] | 16 | 'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc', |
| 17 | 'browser_context_keyed_service/dependency_graph_unittest.cc', |
[email protected] | fb1397ce | 2013-08-13 22:55:07 | [diff] [blame] | 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', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 21 | 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc', |
[email protected] | 40a7e41 | 2013-04-29 18:13:01 | [diff] [blame] | 22 | 'sessions/serialized_navigation_entry_unittest.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 23 | 'test/run_all_unittests.cc', |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 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', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 29 | 'visitedlink/test/visitedlink_unittest.cc', |
[email protected] | 40a7e41 | 2013-04-29 18:13:01 | [diff] [blame] | 30 | 'webdata/encryptor/encryptor_password_mac_unittest.cc', |
| 31 | 'webdata/encryptor/encryptor_unittest.cc', |
[email protected] | e41d008 | 2013-05-16 04:37:54 | [diff] [blame] | 32 | 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 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', |
| 41 | |
[email protected] | d3ff31f | 2013-08-29 23:48:35 | [diff] [blame^] | 42 | # Dependencies of autofill |
| 43 | 'autofill_core_common', |
| 44 | |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 45 | # Dependencies of auto_login_parser |
[email protected] | da84fa4 | 2013-03-24 20:57:36 | [diff] [blame] | 46 | 'auto_login_parser', |
| 47 | |
[email protected] | 0dd6f203 | 2013-05-20 23:33:40 | [diff] [blame] | 48 | # Dependencies of browser_context_keyed_service |
| 49 | 'browser_context_keyed_service', |
| 50 | |
[email protected] | da84fa4 | 2013-03-24 20:57:36 | [diff] [blame] | 51 | # Dependencies of encryptor |
| 52 | 'encryptor', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 53 | |
[email protected] | fb1397ce | 2013-08-13 22:55:07 | [diff] [blame] | 54 | # Dependencies of json_schema |
| 55 | 'json_schema', |
| 56 | |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 57 | # Dependencies of intercept_navigation_resource_throttle_unittest.cc |
[email protected] | 73a75977 | 2013-07-02 20:47:45 | [diff] [blame] | 58 | '../content/content.gyp:test_support_content', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 59 | '../skia/skia.gyp:skia', |
| 60 | 'navigation_interception', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 61 | |
[email protected] | 183be4e | 2013-08-14 14:41:10 | [diff] [blame] | 62 | # Dependencies of policy |
| 63 | 'policy_component', |
| 64 | |
[email protected] | 40a7e41 | 2013-04-29 18:13:01 | [diff] [blame] | 65 | # Dependencies of sessions |
[email protected] | 40a7e41 | 2013-04-29 18:13:01 | [diff] [blame] | 66 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 67 | 'sessions', |
| 68 | 'sessions_test_support', |
| 69 | |
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 70 | # Dependencies of variations |
| 71 | 'variations', |
| 72 | |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 73 | # Dependencies of visitedlink |
[email protected] | da84fa4 | 2013-03-24 20:57:36 | [diff] [blame] | 74 | 'visitedlink_browser', |
| 75 | 'visitedlink_renderer', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 76 | '../content/content_resources.gyp:content_resources', |
[email protected] | e41d008 | 2013-05-16 04:37:54 | [diff] [blame] | 77 | |
| 78 | 'web_modal', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 79 | ], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 80 | 'conditions': [ |
[email protected] | e41d008 | 2013-05-16 04:37:54 | [diff] [blame] | 81 | ['OS == "android"', { |
| 82 | 'sources!': [ |
| 83 | 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
| 84 | ], |
| 85 | 'dependencies!': [ |
| 86 | 'web_modal', |
| 87 | ], |
| 88 | }], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 89 | ['OS == "android" and gtest_target_type == "shared_library"', { |
| 90 | 'dependencies': [ |
| 91 | '../testing/android/native_test.gyp:native_test_native_code', |
| 92 | ] |
| 93 | }], |
[email protected] | c5c9e6dc | 2013-01-30 12:46:58 | [diff] [blame] | 94 | ['OS=="win" and win_use_allocator_shim==1', { |
| 95 | 'dependencies': [ |
| 96 | '../base/allocator/allocator.gyp:allocator', |
| 97 | ], |
| 98 | }], |
[email protected] | 89abf34 | 2013-04-30 09:20:40 | [diff] [blame] | 99 | ['android_webview_build == 0', { |
| 100 | 'dependencies': [ |
| 101 | '../sync/sync.gyp:sync', |
| 102 | ], |
| 103 | }], |
[email protected] | 19e9de23 | 2013-07-23 20:21:06 | [diff] [blame] | 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 | }], |
[email protected] | 183be4e | 2013-08-14 14:41:10 | [diff] [blame] | 112 | ['configuration_policy==1', { |
| 113 | 'sources': [ |
| 114 | 'policy/core/common/policy_schema_unittest.cc', |
| 115 | ], |
| 116 | }], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 117 | ], |
[email protected] | aa6eacc | 2013-02-09 21:18:42 | [diff] [blame] | 118 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 119 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | b1babd9 | 2013-04-05 18:29:42 | [diff] [blame] | 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', |
[email protected] | 73a75977 | 2013-07-02 20:47:45 | [diff] [blame] | 127 | '../content/content.gyp:test_support_content', |
[email protected] | b1babd9 | 2013-04-05 18:29:42 | [diff] [blame] | 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 | }, |
[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 148 | ], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 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 | ], |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 167 | }], |
| 168 | ], |
[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 169 | } |