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 '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',
31 '../base/base.gyp:test_support_base',
32 '../testing/gmock.gyp:gmock',
33 '../testing/gtest.gyp:gtest',
35 # Dependencies of auto_login_parser
38 # Dependencies of browser_context_keyed_service
39 'browser_context_keyed_service',
41 # Dependencies of encryptor
44 # Dependencies of 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
55 # Dependencies of sessions
56 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
58 'sessions_test_support',
60 # Dependencies of visitedlink
61 'visitedlink_browser',
62 'visitedlink_renderer',
63 '../content/content_resources.gyp:content_resources',
70 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
76 ['OS == "android" and gtest_target_type == "shared_library"', {
78 '../testing/android/native_test.gyp:native_test_native_code',
81 ['OS=="win" and win_use_allocator_shim==1', {
83 '../base/allocator/allocator.gyp:allocator',
86 ['android_webview_build == 0', {
88 '../sync/sync.gyp:sync',
91 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
93 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
96 'ldflags': ['-rdynamic'],
99 ['configuration_policy==1', {
101 'policy/core/common/policy_schema_unittest.cc',
105 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
106 'msvs_disabled_warnings': [4267, ],
109 'target_name': 'components_perftests',
110 'type': '<(gtest_target_type)',
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',
123 'visitedlink/test/visitedlink_perftest.cc',
126 ['OS == "android" and gtest_target_type == "shared_library"', {
128 '../testing/android/native_test.gyp:native_test_native_code',
132 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
133 'msvs_disabled_warnings': [ 4267, ],
137 ['OS == "android" and gtest_target_type == "shared_library"', {
140 'target_name': 'components_unittests_apk',
143 'components_unittests',
146 'test_suite_name': 'components_unittests',
147 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
149 'includes': [ '../build/apk_test.gypi' ],