Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: components/components_tests.gyp

Issue 1075783002: Enable components_browsertests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build and add java dependency to components/test/DEPS Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 'variables': { 6 'variables': {
7 # This turns on e.g. the filename-based detection of which 7 # This turns on e.g. the filename-based detection of which
8 # platforms to include source files on (e.g. files ending in 8 # platforms to include source files on (e.g. files ending in
9 # _mac.h or _mac.cc are only compiled on MacOSX). 9 # _mac.h or _mac.cc are only compiled on MacOSX).
10 'chromium_code': 1, 10 'chromium_code': 1,
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 ], 1116 ],
1117 }], 1117 }],
1118 ], 1118 ],
1119 }], 1119 }],
1120 ], 1120 ],
1121 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1121 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1122 'msvs_disabled_warnings': [4267, ], 1122 'msvs_disabled_warnings': [4267, ],
1123 }, 1123 },
1124 ], 1124 ],
1125 'conditions': [ 1125 'conditions': [
1126 ['OS == "android"', {
1127 'variables': {
1128 'components_browsertests_pak_input_resources': [
1129 '<(PRODUCT_DIR)/components_tests_resources.pak',
1130 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
1131 ],
1132 'conditions': [
1133 ['icu_use_data_file_flag==1', {
1134 'components_browsertests_pak_input_resources': [
1135 '<(PRODUCT_DIR)/icudtl.dat',
1136 ],
1137 }],
1138 ['v8_use_external_startup_data==1', {
1139 'components_browsertests_pak_input_resources': [
1140 '<(PRODUCT_DIR)/natives_blob.bin',
1141 '<(PRODUCT_DIR)/snapshot_blob.bin',
1142 ],
1143 }],
1144 ],
1145 },
1146 'targets': [
1147 {
1148 'target_name': 'components_browsertests_paks_copy',
1149 'type': 'none',
1150 'dependencies': [
1151 'components_browsertests',
1152 ],
1153 'copies': [
1154 {
1155 'destination': '<(PRODUCT_DIR)/components_browsertests_apk_shell/a ssets',
1156 'files': [
1157 '<@(components_browsertests_pak_input_resources)',
1158 ],
1159 }
1160 ],
1161 },
1162 {
1163 'target_name': 'components_browsertests_manifest',
1164 'type': 'none',
1165 'variables': {
1166 'jinja_inputs': ['test/android/browsertests_apk/AndroidManifest.xml. jinja2'],
1167 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/components_browsertests_ manifest/AndroidManifest.xml',
1168 },
1169 'includes': [ '../build/android/jinja_template.gypi' ],
1170 },
1171 {
1172 'target_name': 'components_browsertests_jni_headers',
1173 'type': 'none',
1174 'sources': [
1175 'test/android/browsertests_apk/src/org/chromium/components_browserte sts_apk/ComponentsBrowserTestsActivity.java',
1176 ],
1177 'variables': {
1178 'jni_gen_package': 'content/shell',
1179 },
1180 'includes': [ '../build/jni_generator.gypi' ],
1181 },
1182 {
1183 # TODO(GN)
1184 'target_name': 'components_browsertests_apk',
1185 'type': 'none',
1186 'dependencies': [
1187 '../content/content.gyp:content_icudata',
1188 '../content/content.gyp:content_java',
1189 '../content/content.gyp:content_v8_external_data',
1190 '../content/content_shell_and_tests.gyp:content_java_test_support',
1191 '../content/content_shell_and_tests.gyp:content_shell_java',
1192 'components_browsertests_paks_copy',
1193 'components_browsertests',
1194 ],
1195 'variables': {
1196 'apk_name': 'components_browsertests',
1197 'java_in_dir': 'test/android/browsertests_apk',
1198 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/components_brow sertests_manifest/AndroidManifest.xml',
1199 'resource_dir': 'test/android/browsertests_apk/res',
1200 'native_lib_target': 'libcomponents_browsertests',
1201 'asset_location': '<(PRODUCT_DIR)/components_browsertests_apk_shell/ assets',
1202 },
1203 'includes': [ '../build/java_apk.gypi' ],
1204 },
1205 ],
1206 }],
1126 ['OS != "ios"', { 1207 ['OS != "ios"', {
1127 'targets': [ 1208 'targets': [
1128 { 1209 {
1129 # GN: //components:components_perftests 1210 # GN: //components:components_perftests
1130 'target_name': 'components_perftests', 1211 'target_name': 'components_perftests',
1131 'type': '<(gtest_target_type)', 1212 'type': '<(gtest_target_type)',
1132 'dependencies': [ 1213 'dependencies': [
1133 '../base/base.gyp:base', 1214 '../base/base.gyp:base',
1134 '../base/base.gyp:test_support_perf', 1215 '../base/base.gyp:test_support_perf',
1135 '../content/content_shell_and_tests.gyp:test_support_content', 1216 '../content/content_shell_and_tests.gyp:test_support_content',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 'sources': [ 1278 'sources': [
1198 'autofill/content/browser/risk/fingerprint_browsertest.cc', 1279 'autofill/content/browser/risk/fingerprint_browsertest.cc',
1199 'autofill/content/renderer/password_form_conversion_utils_browsertes t.cc', 1280 'autofill/content/renderer/password_form_conversion_utils_browsertes t.cc',
1200 'dom_distiller/content/distillable_page_utils_browsertest.cc', 1281 'dom_distiller/content/distillable_page_utils_browsertest.cc',
1201 'dom_distiller/content/distiller_page_web_contents_browsertest.cc', 1282 'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
1202 'dom_distiller/content/test/dom_distiller_js_browsertest.cc', 1283 'dom_distiller/content/test/dom_distiller_js_browsertest.cc',
1203 'password_manager/content/renderer/credential_manager_client_browser test.cc', 1284 'password_manager/content/renderer/credential_manager_client_browser test.cc',
1204 ], 1285 ],
1205 'conditions': [ 1286 'conditions': [
1206 ['OS == "android"', { 1287 ['OS == "android"', {
1288 'sources' : [
1289 'test/android/browsertests_apk/components_browser_tests_android. cc',
1290 'test/android/browsertests_apk/components_browser_tests_android. h',
1291 'test/android/browsertests_apk/components_browser_tests_jni_onlo ad.cc',
1292 ],
1207 'sources!': [ 1293 'sources!': [
1208 'autofill/content/browser/risk/fingerprint_browsertest.cc', 1294 'autofill/content/browser/risk/fingerprint_browsertest.cc',
1209 ], 1295 ],
1296 'dependencies': [
1297 '../testing/android/native_test.gyp:native_test_util',
1298 'components_browsertests_jni_headers',
1299 ],
1210 }], 1300 }],
1211 ['OS == "linux"', { 1301 ['OS == "linux"', {
1212 'sources': [ 1302 'sources': [
1213 # content_extractor_browsertest is a standalone content extrac tion tool built as 1303 # content_extractor_browsertest is a standalone content extrac tion tool built as
1214 # a MANUAL component_browsertest. 1304 # a MANUAL component_browsertest.
1215 'dom_distiller/standalone/content_extractor_browsertest.cc', 1305 'dom_distiller/standalone/content_extractor_browsertest.cc',
1216 ], 1306 ],
1217 }], 1307 }],
1218 ['OS=="win"', { 1308 ['OS=="win"', {
1219 'resource_include_dirs': [ 1309 'resource_include_dirs': [
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 ], 1422 ],
1333 'variables': { 1423 'variables': {
1334 'test_suite_name': 'components_unittests', 1424 'test_suite_name': 'components_unittests',
1335 }, 1425 },
1336 'includes': [ '../build/apk_test.gypi' ], 1426 'includes': [ '../build/apk_test.gypi' ],
1337 }, 1427 },
1338 ], 1428 ],
1339 }], 1429 }],
1340 ], 1430 ],
1341 } 1431 }
OLDNEW
« no previous file with comments | « components/components_browsertests.isolate ('k') | components/dom_distiller/content/distillable_page_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698