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', | |
blundell
2013/10/02 10:01:17
Same comment.
droger
2013/10/02 10:59:41
Done.
| |
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 'translate/common/translate_metrics_unittest.cc', | |
24 'translate/common/translate_util_unittest.cc', | |
25 'translate/language_detection/language_detection_util_unittest.cc', | |
26 # TODO(asvitkine): These should be tested on iOS too. | |
27 'variations/entropy_provider_unittest.cc', | |
28 'variations/metrics_util_unittest.cc', | |
29 'variations/variations_associated_data_unittest.cc', | |
30 'variations/variations_seed_processor_unittest.cc', | |
31 'visitedlink/test/visitedlink_unittest.cc', | |
32 'webdata/encryptor/encryptor_password_mac_unittest.cc', | |
33 'webdata/encryptor/encryptor_unittest.cc', | |
34 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
35 ], | |
36 'include_dirs': [ | |
37 '..', | |
38 ], | |
39 'dependencies': [ | |
40 '../base/base.gyp:test_support_base', | |
41 '../testing/gmock.gyp:gmock', | |
42 '../testing/gtest.gyp:gtest', | |
43 | |
44 # Dependencies of autofill | |
45 'autofill_core_common', | |
46 | |
47 # Dependencies of auto_login_parser | |
48 'auto_login_parser', | |
49 | |
50 # Dependencies of browser_context_keyed_service | |
51 'browser_context_keyed_service', | |
52 | |
53 # Dependencies of dom_distiller | |
54 'dom_distiller_core', | |
55 'dom_distiller_core_proto', | |
56 | |
57 # Dependencies of encryptor | |
58 'encryptor', | |
59 | |
60 # Dependencies of json_schema | |
61 'json_schema', | |
62 | |
63 # Dependencies of intercept_navigation_resource_throttle_unittest.cc | |
64 '../content/content.gyp:test_support_content', | |
65 '../skia/skia.gyp:skia', | |
66 'navigation_interception', | |
67 | |
68 # Dependencies of policy | |
69 'policy_component', | |
70 | |
71 # Dependencies of sessions | |
72 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
73 'sessions', | |
74 'sessions_test_support', | |
75 | |
76 # Dependencies of translate. | |
77 'translate_common', | |
78 'translate_language_detection', | |
79 | |
80 # Dependencies of variations | |
81 'variations', | |
82 | |
83 # Dependencies of visitedlink | |
84 'visitedlink_browser', | |
85 'visitedlink_renderer', | |
86 '../content/content_resources.gyp:content_resources', | |
87 | |
88 'web_modal', | |
89 ], | |
90 'conditions': [ | |
91 ['OS == "ios"', { | |
92 'sources/': [ | |
93 ['exclude', '\\.cc$'], | |
94 ['include', '^test/run_all_unittests\\.cc$'], | |
95 # TODO(ios): Include files here as they are made to work. | |
96 ['include', '^translate'], | |
97 ], | |
98 'dependencies!': [ | |
99 'autofill_core_common', | |
100 'dom_distiller_core', | |
101 'dom_distiller_core_proto', | |
102 'navigation_interception', | |
103 'visitedlink_renderer', | |
104 ], | |
105 }], | |
106 ['OS == "android"', { | |
107 'sources!': [ | |
108 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
109 ], | |
110 'dependencies!': [ | |
111 'web_modal', | |
112 ], | |
113 }], | |
114 ['OS == "android" and gtest_target_type == "shared_library"', { | |
115 'dependencies': [ | |
116 '../testing/android/native_test.gyp:native_test_native_code', | |
117 ] | |
118 }], | |
119 ['OS=="win" and win_use_allocator_shim==1', { | |
120 'dependencies': [ | |
121 '../base/allocator/allocator.gyp:allocator', | |
122 ], | |
123 }], | |
124 ['android_webview_build == 0', { | |
125 'dependencies': [ | |
126 '../sync/sync.gyp:sync', | |
127 ], | |
128 }], | |
129 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1' , { | |
130 'dependencies': [ | |
131 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
132 ], | |
133 'link_settings': { | |
134 'ldflags': ['-rdynamic'], | |
135 }, | |
136 }], | |
137 ['configuration_policy==1', { | |
138 'sources': [ | |
139 'policy/core/common/schema_unittest.cc', | |
140 ], | |
141 }], | |
142 ], | |
143 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
144 'msvs_disabled_warnings': [4267, ], | |
145 }, | |
146 ], | |
6 'conditions': [ | 147 'conditions': [ |
7 ['OS != "ios"', { | 148 ['OS != "ios"', { |
8 'targets': [ | 149 'targets': [ |
9 { | 150 { |
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', | 151 'target_name': 'components_perftests', |
128 'type': '<(gtest_target_type)', | 152 'type': '<(gtest_target_type)', |
129 'dependencies': [ | 153 'dependencies': [ |
130 '../base/base.gyp:base', | 154 '../base/base.gyp:base', |
131 '../base/base.gyp:test_support_perf', | 155 '../base/base.gyp:test_support_perf', |
132 '../content/content.gyp:test_support_content', | 156 '../content/content.gyp:test_support_content', |
133 '../testing/gtest.gyp:gtest', | 157 '../testing/gtest.gyp:gtest', |
134 '../ui/compositor/compositor.gyp:compositor', | 158 '../ui/compositor/compositor.gyp:compositor', |
135 'visitedlink_browser', | 159 'visitedlink_browser', |
136 ], | 160 ], |
(...skipping 28 matching lines...) Expand all Loading... | |
165 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo nents_unittests<(SHARED_LIB_SUFFIX)', | 189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo nents_unittests<(SHARED_LIB_SUFFIX)', |
166 }, | 190 }, |
167 'includes': [ '../build/apk_test.gypi' ], | 191 'includes': [ '../build/apk_test.gypi' ], |
168 }, | 192 }, |
169 ], | 193 ], |
170 }], | 194 }], |
171 ], | 195 ], |
172 }], | 196 }], |
173 ], | 197 ], |
174 } | 198 } |
OLD | NEW |