| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'components_unittests', |
| 9 'type': '<(gtest_target_type)', |
| 10 'sources': [ |
| 11 'autofill/core/common/form_data_unittest.cc', |
| 12 'autofill/core/common/form_field_data_unittest.cc', |
| 13 'auto_login_parser/auto_login_parser_unittest.cc', |
| 14 'browser_context_keyed_service/browser_context_dependency_manager_unitte
st.cc', |
| 15 'browser_context_keyed_service/dependency_graph_unittest.cc', |
| 16 'dom_distiller/core/dom_distiller_database_unittest.cc', |
| 17 'json_schema/json_schema_validator_unittest.cc', |
| 18 'json_schema/json_schema_validator_unittest_base.cc', |
| 19 'json_schema/json_schema_validator_unittest_base.h', |
| 20 'navigation_interception/intercept_navigation_resource_throttle_unittest
.cc', |
| 21 'sessions/serialized_navigation_entry_unittest.cc', |
| 22 'test/run_all_unittests.cc', |
| 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', |
| 27 'visitedlink/test/visitedlink_unittest.cc', |
| 28 'webdata/encryptor/encryptor_password_mac_unittest.cc', |
| 29 'webdata/encryptor/encryptor_unittest.cc', |
| 30 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
| 31 ], |
| 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 |
| 40 # Dependencies of autofill |
| 41 'autofill_core_common', |
| 42 |
| 43 # Dependencies of auto_login_parser |
| 44 'auto_login_parser', |
| 45 |
| 46 # Dependencies of browser_context_keyed_service |
| 47 'browser_context_keyed_service', |
| 48 |
| 49 # Dependencies of dom_distiller |
| 50 'dom_distiller_core', |
| 51 'dom_distiller_core_proto', |
| 52 |
| 53 # Dependencies of encryptor |
| 54 'encryptor', |
| 55 |
| 56 # Dependencies of json_schema |
| 57 'json_schema', |
| 58 |
| 59 # Dependencies of intercept_navigation_resource_throttle_unittest.cc |
| 60 '../content/content.gyp:test_support_content', |
| 61 '../skia/skia.gyp:skia', |
| 62 'navigation_interception', |
| 63 |
| 64 # Dependencies of policy |
| 65 'policy_component', |
| 66 |
| 67 # Dependencies of sessions |
| 68 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 69 'sessions', |
| 70 'sessions_test_support', |
| 71 |
| 72 # Dependencies of variations |
| 73 'variations', |
| 74 |
| 75 # Dependencies of visitedlink |
| 76 'visitedlink_browser', |
| 77 'visitedlink_renderer', |
| 78 '../content/content_resources.gyp:content_resources', |
| 79 |
| 80 'web_modal', |
| 81 ], |
| 82 'conditions': [ |
| 83 ['OS == "ios"', { |
| 84 'sources/': [ |
| 85 ['exclude', '\\.cc$'], |
| 86 ['include', '^test/run_all_unittests\\.cc$'], |
| 87 # TODO(ios): Include files here as they are made to work, see |
| 88 # http://crbug.com/303011. |
| 89 # TODO(asvitkine): Bring up varations/ unittests on iOS. |
| 90 ], |
| 91 'dependencies!': [ |
| 92 'autofill_core_common', |
| 93 'dom_distiller_core', |
| 94 'dom_distiller_core_proto', |
| 95 'navigation_interception', |
| 96 'visitedlink_renderer', |
| 97 ], |
| 98 }], |
| 99 ['OS == "android"', { |
| 100 'sources!': [ |
| 101 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
| 102 ], |
| 103 'dependencies!': [ |
| 104 'web_modal', |
| 105 ], |
| 106 }], |
| 107 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 108 'dependencies': [ |
| 109 '../testing/android/native_test.gyp:native_test_native_code', |
| 110 ] |
| 111 }], |
| 112 ['OS=="win" and win_use_allocator_shim==1', { |
| 113 'dependencies': [ |
| 114 '../base/allocator/allocator.gyp:allocator', |
| 115 ], |
| 116 }], |
| 117 ['android_webview_build == 0', { |
| 118 'dependencies': [ |
| 119 '../sync/sync.gyp:sync', |
| 120 ], |
| 121 }], |
| 122 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1'
, { |
| 123 'dependencies': [ |
| 124 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 125 ], |
| 126 'link_settings': { |
| 127 'ldflags': ['-rdynamic'], |
| 128 }, |
| 129 }], |
| 130 ['configuration_policy==1', { |
| 131 'sources': [ |
| 132 'policy/core/common/schema_unittest.cc', |
| 133 ], |
| 134 }], |
| 135 ], |
| 136 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 137 'msvs_disabled_warnings': [4267, ], |
| 138 }, |
| 139 ], |
| 6 'conditions': [ | 140 'conditions': [ |
| 7 ['OS != "ios"', { | 141 ['OS != "ios"', { |
| 8 'targets': [ | 142 'targets': [ |
| 9 { | 143 { |
| 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_un
ittest.cc', | |
| 17 'browser_context_keyed_service/dependency_graph_unittest.cc', | |
| 18 'dom_distiller/core/dom_distiller_database_unittest.cc', | |
| 19 'json_schema/json_schema_validator_unittest.cc', | |
| 20 'json_schema/json_schema_validator_unittest_base.cc', | |
| 21 'json_schema/json_schema_validator_unittest_base.h', | |
| 22 'navigation_interception/intercept_navigation_resource_throttle_unit
test.cc', | |
| 23 'sessions/serialized_navigation_entry_unittest.cc', | |
| 24 'test/run_all_unittests.cc', | |
| 25 # TODO(asvitkine): These should be tested on iOS too. | |
| 26 'variations/entropy_provider_unittest.cc', | |
| 27 'variations/metrics_util_unittest.cc', | |
| 28 'variations/variations_associated_data_unittest.cc', | |
| 29 'variations/variations_seed_processor_unittest.cc', | |
| 30 'visitedlink/test/visitedlink_unittest.cc', | |
| 31 'webdata/encryptor/encryptor_password_mac_unittest.cc', | |
| 32 'webdata/encryptor/encryptor_unittest.cc', | |
| 33 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
| 34 ], | |
| 35 'include_dirs': [ | |
| 36 '..', | |
| 37 ], | |
| 38 'dependencies': [ | |
| 39 '../base/base.gyp:test_support_base', | |
| 40 '../testing/gmock.gyp:gmock', | |
| 41 '../testing/gtest.gyp:gtest', | |
| 42 | |
| 43 # Dependencies of autofill | |
| 44 'autofill_core_common', | |
| 45 | |
| 46 # Dependencies of auto_login_parser | |
| 47 'auto_login_parser', | |
| 48 | |
| 49 # Dependencies of browser_context_keyed_service | |
| 50 'browser_context_keyed_service', | |
| 51 | |
| 52 # Dependencies of dom_distiller | |
| 53 'dom_distiller_core', | |
| 54 'dom_distiller_core_proto', | |
| 55 | |
| 56 # Dependencies of encryptor | |
| 57 'encryptor', | |
| 58 | |
| 59 # Dependencies of json_schema | |
| 60 'json_schema', | |
| 61 | |
| 62 # Dependencies of intercept_navigation_resource_throttle_unittest.cc | |
| 63 '../content/content.gyp:test_support_content', | |
| 64 '../skia/skia.gyp:skia', | |
| 65 'navigation_interception', | |
| 66 | |
| 67 # Dependencies of policy | |
| 68 'policy_component', | |
| 69 | |
| 70 # Dependencies of sessions | |
| 71 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 72 'sessions', | |
| 73 'sessions_test_support', | |
| 74 | |
| 75 # Dependencies of variations | |
| 76 'variations', | |
| 77 | |
| 78 # Dependencies of visitedlink | |
| 79 'visitedlink_browser', | |
| 80 'visitedlink_renderer', | |
| 81 '../content/content_resources.gyp:content_resources', | |
| 82 | |
| 83 'web_modal', | |
| 84 ], | |
| 85 'conditions': [ | |
| 86 ['OS == "android"', { | |
| 87 'sources!': [ | |
| 88 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
| 89 ], | |
| 90 'dependencies!': [ | |
| 91 'web_modal', | |
| 92 ], | |
| 93 }], | |
| 94 ['OS == "android" and gtest_target_type == "shared_library"', { | |
| 95 'dependencies': [ | |
| 96 '../testing/android/native_test.gyp:native_test_native_code', | |
| 97 ] | |
| 98 }], | |
| 99 ['OS=="win" and win_use_allocator_shim==1', { | |
| 100 'dependencies': [ | |
| 101 '../base/allocator/allocator.gyp:allocator', | |
| 102 ], | |
| 103 }], | |
| 104 ['android_webview_build == 0', { | |
| 105 'dependencies': [ | |
| 106 '../sync/sync.gyp:sync', | |
| 107 ], | |
| 108 }], | |
| 109 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc
==1', { | |
| 110 'dependencies': [ | |
| 111 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
| 112 ], | |
| 113 'link_settings': { | |
| 114 'ldflags': ['-rdynamic'], | |
| 115 }, | |
| 116 }], | |
| 117 ['configuration_policy==1', { | |
| 118 'sources': [ | |
| 119 'policy/core/common/schema_unittest.cc', | |
| 120 ], | |
| 121 }], | |
| 122 ], | |
| 123 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 124 'msvs_disabled_warnings': [4267, ], | |
| 125 }, | |
| 126 { | |
| 127 'target_name': 'components_perftests', | 144 'target_name': 'components_perftests', |
| 128 'type': '<(gtest_target_type)', | 145 'type': '<(gtest_target_type)', |
| 129 'dependencies': [ | 146 'dependencies': [ |
| 130 '../base/base.gyp:base', | 147 '../base/base.gyp:base', |
| 131 '../base/base.gyp:test_support_perf', | 148 '../base/base.gyp:test_support_perf', |
| 132 '../content/content.gyp:test_support_content', | 149 '../content/content.gyp:test_support_content', |
| 133 '../testing/gtest.gyp:gtest', | 150 '../testing/gtest.gyp:gtest', |
| 134 '../ui/compositor/compositor.gyp:compositor', | 151 '../ui/compositor/compositor.gyp:compositor', |
| 135 'visitedlink_browser', | 152 'visitedlink_browser', |
| 136 ], | 153 ], |
| (...skipping 28 matching lines...) Expand all Loading... |
| 165 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo
nents_unittests<(SHARED_LIB_SUFFIX)', | 182 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo
nents_unittests<(SHARED_LIB_SUFFIX)', |
| 166 }, | 183 }, |
| 167 'includes': [ '../build/apk_test.gypi' ], | 184 'includes': [ '../build/apk_test.gypi' ], |
| 168 }, | 185 }, |
| 169 ], | 186 ], |
| 170 }], | 187 }], |
| 171 ], | 188 ], |
| 172 }], | 189 }], |
| 173 ], | 190 ], |
| 174 } | 191 } |
| OLD | NEW |