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

Side by Side Diff: components/cronet.gypi

Issue 560153002: Add Cronet Test App that uses libcronet_tests.so with net test utilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move existing Cronet Tests to CronetTestInstrumentation. Created 6 years, 3 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 'conditions': [ 6 'conditions': [
7 ['OS=="android" and use_icu_alternatives_on_android==1', { 7 ['OS=="android" and use_icu_alternatives_on_android==1', {
8 # TODO(mef): Figure out what needs to be done for gn script. 8 # TODO(mef): Figure out what needs to be done for gn script.
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 '-f', '<(version_path)', 84 '-f', '<(version_path)',
85 '-f', '<(lastchange_path)', 85 '-f', '<(lastchange_path)',
86 '<(template_input_path)', 86 '<(template_input_path)',
87 '<@(_outputs)', 87 '<@(_outputs)',
88 ], 88 ],
89 'message': 'Generating version information', 89 'message': 'Generating version information',
90 }, 90 },
91 ], 91 ],
92 }, 92 },
93 { 93 {
94 'target_name': 'libcronet', 94 'target_name': 'cronet_static',
95 'type': 'shared_library', 95 'type': 'static_library',
96 'dependencies': [ 96 'dependencies': [
97 '../base/base.gyp:base', 97 '../base/base.gyp:base',
98 '../base/base.gyp:base_i18n', 98 '../base/base.gyp:base_i18n',
99 '../third_party/icu/icu.gyp:icui18n', 99 '../third_party/icu/icu.gyp:icui18n',
100 '../third_party/icu/icu.gyp:icuuc', 100 '../third_party/icu/icu.gyp:icuuc',
101 '../url/url.gyp:url_lib',
102 'cronet_jni_headers', 101 'cronet_jni_headers',
103 'cronet_url_request_context_config_list', 102 'cronet_url_request_context_config_list',
104 'cronet_url_request_error_list', 103 'cronet_url_request_error_list',
105 'cronet_url_request_priority_list', 104 'cronet_url_request_priority_list',
106 'cronet_version', 105 'cronet_version',
107 '../net/net.gyp:net', 106 '../net/net.gyp:net',
108 ], 107 ],
109 'sources': [ 108 'sources': [
110 'cronet/url_request_context_config.cc', 109 'cronet/url_request_context_config.cc',
111 'cronet/url_request_context_config.h', 110 'cronet/url_request_context_config.h',
112 'cronet/url_request_context_config_list.h', 111 'cronet/url_request_context_config_list.h',
113 'cronet/android/chromium_url_request.cc', 112 'cronet/android/chromium_url_request.cc',
114 'cronet/android/chromium_url_request.h', 113 'cronet/android/chromium_url_request.h',
115 'cronet/android/chromium_url_request_error_list.h', 114 'cronet/android/chromium_url_request_error_list.h',
116 'cronet/android/chromium_url_request_priority_list.h', 115 'cronet/android/chromium_url_request_priority_list.h',
117 'cronet/android/chromium_url_request_context.cc', 116 'cronet/android/chromium_url_request_context.cc',
118 'cronet/android/chromium_url_request_context.h', 117 'cronet/android/chromium_url_request_context.h',
119 'cronet/android/cronet_jni.cc', 118 'cronet/android/cronet_loader.cc',
119 'cronet/android/cronet_loader.h',
120 'cronet/android/url_request_adapter.cc', 120 'cronet/android/url_request_adapter.cc',
121 'cronet/android/url_request_adapter.h', 121 'cronet/android/url_request_adapter.h',
122 'cronet/android/url_request_context_adapter.cc', 122 'cronet/android/url_request_context_adapter.cc',
123 'cronet/android/url_request_context_adapter.h', 123 'cronet/android/url_request_context_adapter.h',
124 'cronet/android/wrapped_channel_upload_element_reader.cc', 124 'cronet/android/wrapped_channel_upload_element_reader.cc',
125 'cronet/android/wrapped_channel_upload_element_reader.h', 125 'cronet/android/wrapped_channel_upload_element_reader.h',
126 ], 126 ],
127 'cflags': [ 127 'cflags': [
128 '-DLOGGING=1', 128 '-DLOGGING=1',
129 '-fdata-sections', 129 '-fdata-sections',
(...skipping 14 matching lines...) Expand all
144 [ 'use_icu_alternatives_on_android == 1', { 144 [ 'use_icu_alternatives_on_android == 1', {
145 'dependencies!': [ 145 'dependencies!': [
146 '../base/base.gyp:base_i18n', 146 '../base/base.gyp:base_i18n',
147 '../third_party/icu/icu.gyp:icui18n', 147 '../third_party/icu/icu.gyp:icui18n',
148 '../third_party/icu/icu.gyp:icuuc', 148 '../third_party/icu/icu.gyp:icuuc',
149 ] 149 ]
150 }, 150 },
151 ], 151 ],
152 ], 152 ],
153 }, 153 },
154 {
155 'target_name': 'libcronet',
156 'type': 'shared_library',
157 'sources': [
158 'cronet/android/cronet_jni.cc',
159 ],
160 'dependencies': [
161 'cronet_static',
162 '../base/base.gyp:base',
163 '../net/net.gyp:net',
164 '../url/url.gyp:url_lib',
165 ],
166 },
154 { # cronet_stub.jar defines HttpUrlRequest interface and provides its 167 { # cronet_stub.jar defines HttpUrlRequest interface and provides its
155 # its implementation using HttpUrlConnection (not the Chromium stack). 168 # its implementation using HttpUrlConnection (not the Chromium stack).
156 'target_name': 'cronet_stub', 169 'target_name': 'cronet_stub',
157 'type': 'none', 170 'type': 'none',
158 'dependencies': [ 171 'dependencies': [
159 'cronet_url_request_context_config_list', 172 'cronet_url_request_context_config_list',
160 'cronet_version', 173 'cronet_version',
161 ], 174 ],
162 'variables': { 175 'variables': {
163 'java_in_dir': 'cronet/android/java', 176 'java_in_dir': 'cronet/android/java',
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 'type': 'none', 377 'type': 'none',
365 'dependencies': [ 378 'dependencies': [
366 'cronet_sample_apk_java', 379 'cronet_sample_apk_java',
367 '../base/base.gyp:base_java', 380 '../base/base.gyp:base_java',
368 '../base/base.gyp:base_javatests', 381 '../base/base.gyp:base_javatests',
369 '../base/base.gyp:base_java_test_support', 382 '../base/base.gyp:base_java_test_support',
370 # TODO(mef): Figure out why some tests are failing. 383 # TODO(mef): Figure out why some tests are failing.
371 #'../net/net.gyp:net_javatests', 384 #'../net/net.gyp:net_javatests',
372 #'../net/net.gyp:net_java_test_support', 385 #'../net/net.gyp:net_java_test_support',
373 ], 386 ],
374 'variables': { 387 'variables':
375 'apk_name': 'CronetSampleTest', 388 { 'apk_name': 'CronetSampleTest',
mmenke 2014/09/11 18:05:24 nit: Move { back to previous line
mef 2014/09/11 18:37:54 Done.
376 'java_in_dir': 'cronet/android/sample/javatests', 389 'java_in_dir': 'cronet/android/sample/javatests',
377 'resource_dir': 'cronet/android/sample/res', 390 'resource_dir': 'cronet/android/sample/res',
378 'is_test_apk': 1, 391 'is_test_apk': 1,
379 }, 392 },
380 'includes': [ '../build/java_apk.gypi' ], 393 'includes': [ '../build/java_apk.gypi' ],
381 }, 394 },
395 {
396 'target_name': 'cronet_tests_jni_headers',
397 'type': 'none',
398 'sources': [
399 'cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestUtil .java',
mmenke 2014/09/11 18:05:24 I find the separation of "android/test/src/org/chr
mef 2014/09/11 18:37:54 It is somewhat confusing, but they are in differen
mmenke 2014/09/11 18:54:41 So they're in the same package, but different apks
400 ],
401 'variables': {
402 'jni_gen_package': 'cronet_tests',
403 },
404 'includes': [ '../build/jni_generator.gypi' ],
405 },
406 {
407 'target_name': 'libcronet_tests',
408 'type': 'shared_library',
409 'sources': [
410 'cronet/android/test/cronet_tests_jni.cc',
411 ],
412 'dependencies': [
413 'cronet_static',
414 'cronet_tests_jni_headers',
415 '../base/base.gyp:base',
416 '../net/net.gyp:net',
417 '../net/net.gyp:quic_tools',
418 '../url/url.gyp:url_lib',
419 ],
420 },
421 {
422 'target_name': 'cronet_test_apk',
423 'type': 'none',
424 'dependencies': [
425 'cronet',
426 ],
427 'variables': {
428 'apk_name': 'CronetTest',
429 'java_in_dir': 'cronet/android/test',
430 'resource_dir': 'cronet/android/test/res',
431 'native_lib_target': 'libcronet_tests',
432 },
433 'includes': [ '../build/java_apk.gypi' ],
434 },
435 {
436 # cronet_test_apk creates a .jar as a side effect. Any java targets
437 # that need that .jar in their classpath should depend on this target,
438 # cronet_sample_apk_java. Dependents of cronet_test_apk receive its
439 # jar path in the variable 'apk_output_jar_path'. This target should
440 # only be used by targets which instrument cronet_test_apk.
441 'target_name': 'cronet_test_apk_java',
442 'type': 'none',
443 'dependencies': [
444 'cronet_test_apk',
445 ],
446 'includes': [ '../build/apk_fake_jar.gypi' ],
447 },
448 {
449 'target_name': 'cronet_test_instrumentation_apk',
450 'type': 'none',
451 'dependencies': [
452 'cronet_test_apk_java',
453 '../base/base.gyp:base_java',
454 '../base/base.gyp:base_javatests',
455 '../base/base.gyp:base_java_test_support',
456 ],
457 'variables': {
458 'apk_name': 'CronetTestInstrumentation',
459 'java_in_dir': 'cronet/android/test/javatests',
460 'resource_dir': 'cronet/android/test/res',
461 'is_test_apk': 1,
462 },
463 'includes': [ '../build/java_apk.gypi' ],
464 },
382 ], 465 ],
383 }], # OS=="android" 466 }], # OS=="android"
384 ], 467 ],
385 } 468 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/cronet_jni.cc » ('j') | components/cronet/android/cronet_jni.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698