Don't send offline status before the host has started.
[chromium-blink-merge.git] / components / components_tests.gypi
blobb8e560008b9f1e7463d3d5fb6fd16c30660432f9
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.
6   'conditions': [
7     ['OS != "ios"', {
8       'targets': [
9         {
10           'target_name': 'components_unittests',
11           'type': '<(gtest_target_type)',
12           'sources': [
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             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
17             'sessions/serialized_navigation_entry_unittest.cc',
18             'test/run_all_unittests.cc',
19             'visitedlink/test/visitedlink_unittest.cc',
20             'webdata/encryptor/encryptor_password_mac_unittest.cc',
21             'webdata/encryptor/encryptor_unittest.cc',
22             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
23           ],
24           'include_dirs': [
25             '..',
26           ],
27           'dependencies': [
28             '../base/base.gyp:test_support_base',
29             '../testing/gmock.gyp:gmock',
30             '../testing/gtest.gyp:gtest',
32             # Dependencies of auto_login_parser
33             'auto_login_parser',
35             # Dependencies of browser_context_keyed_service
36             'browser_context_keyed_service',
38             # Dependencies of encryptor
39             'encryptor',
41             # Dependencies of intercept_navigation_resource_throttle_unittest.cc
42             '../content/content.gyp:test_support_content',
43             '../skia/skia.gyp:skia',
44             'navigation_interception',
46             # Dependencies of sessions
47             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
48             'sessions',
49             'sessions_test_support',
51             # Dependencies of visitedlink
52             'visitedlink_browser',
53             'visitedlink_renderer',
54             '../content/content_resources.gyp:content_resources',
56             'web_modal',
57           ],
58           'conditions': [
59             ['OS == "android"', {
60               'sources!': [
61                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
62               ],
63               'dependencies!': [
64                 'web_modal',
65               ],
66             }],
67             ['OS == "android" and gtest_target_type == "shared_library"', {
68               'dependencies': [
69                 '../testing/android/native_test.gyp:native_test_native_code',
70               ]
71             }],
72             ['OS=="win" and win_use_allocator_shim==1', {
73               'dependencies': [
74                 '../base/allocator/allocator.gyp:allocator',
75               ],
76             }],
77             ['android_webview_build == 0', {
78               'dependencies': [
79                 '../sync/sync.gyp:sync',
80               ],
81             }],
82             ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
83             'dependencies': [
84                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
85             ],
86             'link_settings': {
87                 'ldflags': ['-rdynamic'],
88             },
89             }],
90           ],
91           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92           'msvs_disabled_warnings': [4267, ],
93         },
94         {
95           'target_name': 'components_perftests',
96           'type': '<(gtest_target_type)',
97           'dependencies': [
98             '../base/base.gyp:base',
99             '../base/base.gyp:test_support_perf',
100             '../content/content.gyp:test_support_content',
101             '../testing/gtest.gyp:gtest',
102             '../ui/compositor/compositor.gyp:compositor',
103             'visitedlink_browser',
104           ],
105          'include_dirs': [
106            '..',
107          ],
108          'sources': [
109            'visitedlink/test/visitedlink_perftest.cc',
110          ],
111          'conditions': [
112            ['OS == "android" and gtest_target_type == "shared_library"', {
113              'dependencies': [
114                '../testing/android/native_test.gyp:native_test_native_code',
115              ],
116            }],
117          ],
118          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119          'msvs_disabled_warnings': [ 4267, ],
120         },
121       ],
122       'conditions': [
123         ['OS == "android" and gtest_target_type == "shared_library"', {
124           'targets': [
125             {
126               'target_name': 'components_unittests_apk',
127               'type': 'none',
128               'dependencies': [
129                 'components_unittests',
130               ],
131               'variables': {
132                 'test_suite_name': 'components_unittests',
133                 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
134               },
135               'includes': [ '../build/apk_test.gypi' ],
136             },
137           ],
138         }],
139       ],
140     }],
141   ],