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

Side by Side Diff: components/cronet.gypi

Issue 558333007: Setup initial mock url request job tests for Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 2 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
« no previous file with comments | « no previous file | components/cronet/android/test/assets/test/notfound.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 'resource_dir': 'cronet/android/sample/res', 393 'resource_dir': 'cronet/android/sample/res',
394 'is_test_apk': 1, 394 'is_test_apk': 1,
395 }, 395 },
396 'includes': [ '../build/java_apk.gypi' ], 396 'includes': [ '../build/java_apk.gypi' ],
397 }, 397 },
398 { 398 {
399 'target_name': 'cronet_tests_jni_headers', 399 'target_name': 'cronet_tests_jni_headers',
400 'type': 'none', 400 'type': 'none',
401 'sources': [ 401 'sources': [
402 'cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestUtil .java', 402 'cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestUtil .java',
403 'cronet/android/test/javatests/src/org/chromium/cronet_test_apk/Mock UrlRequestJobTest.java',
403 ], 404 ],
404 'variables': { 405 'variables': {
405 'jni_gen_package': 'cronet_tests', 406 'jni_gen_package': 'cronet_tests',
406 }, 407 },
407 'includes': [ '../build/jni_generator.gypi' ], 408 'includes': [ '../build/jni_generator.gypi' ],
408 }, 409 },
409 { 410 {
410 'target_name': 'libcronet_tests', 411 'target_name': 'libcronet_tests',
411 'type': 'shared_library', 412 'type': 'shared_library',
412 'sources': [ 413 'sources': [
413 'cronet/android/test/cronet_test_jni.cc', 414 'cronet/android/test/cronet_test_jni.cc',
415 'cronet/android/test/mock_url_request_job_test.cc',
416 'cronet/android/test/mock_url_request_job_test.h',
417 '../net/base/directory_lister.cc',
418 '../net/base/directory_lister.h',
419 '../net/url_request/url_request_file_job.cc',
420 '../net/url_request/url_request_file_job.h',
414 ], 421 ],
415 'dependencies': [ 422 'dependencies': [
416 'cronet_static', 423 'cronet_static',
417 'cronet_tests_jni_headers', 424 'cronet_tests_jni_headers',
418 '../base/base.gyp:base', 425 '../base/base.gyp:base',
419 '../net/net.gyp:net', 426 '../net/net.gyp:net',
427 '../net/net.gyp:net_test_support',
420 '../net/net.gyp:quic_tools', 428 '../net/net.gyp:quic_tools',
421 '../url/url.gyp:url_lib', 429 '../url/url.gyp:url_lib',
430 '../base/base.gyp:base_i18n',
431 '../third_party/icu/icu.gyp:icui18n',
432 '../third_party/icu/icu.gyp:icuuc',
422 ], 433 ],
423 }, 434 },
424 { 435 {
425 'target_name': 'cronet_test_apk', 436 'target_name': 'cronet_test_apk',
426 'type': 'none', 437 'type': 'none',
427 'dependencies': [ 438 'dependencies': [
428 'cronet', 439 'cronet',
429 ], 440 ],
430 'variables': { 441 'variables': {
431 'apk_name': 'CronetTest', 442 'apk_name': 'CronetTest',
432 'java_in_dir': 'cronet/android/test', 443 'java_in_dir': 'cronet/android/test',
433 'resource_dir': 'cronet/android/test/res', 444 'resource_dir': 'cronet/android/test/res',
445 'asset_location': 'cronet/android/test/assets',
434 'native_lib_target': 'libcronet_tests', 446 'native_lib_target': 'libcronet_tests',
435 }, 447 },
436 'includes': [ '../build/java_apk.gypi' ], 448 'includes': [ '../build/java_apk.gypi' ],
437 }, 449 },
438 { 450 {
439 # cronet_test_apk creates a .jar as a side effect. Any java targets 451 # cronet_test_apk creates a .jar as a side effect. Any java targets
440 # that need that .jar in their classpath should depend on this target, 452 # that need that .jar in their classpath should depend on this target,
441 # cronet_sample_apk_java. Dependents of cronet_test_apk receive its 453 # cronet_sample_apk_java. Dependents of cronet_test_apk receive its
442 # jar path in the variable 'apk_output_jar_path'. This target should 454 # jar path in the variable 'apk_output_jar_path'. This target should
443 # only be used by targets which instrument cronet_test_apk. 455 # only be used by targets which instrument cronet_test_apk.
(...skipping 18 matching lines...) Expand all
462 'java_in_dir': 'cronet/android/test/javatests', 474 'java_in_dir': 'cronet/android/test/javatests',
463 'resource_dir': 'cronet/android/test/res', 475 'resource_dir': 'cronet/android/test/res',
464 'is_test_apk': 1, 476 'is_test_apk': 1,
465 }, 477 },
466 'includes': [ '../build/java_apk.gypi' ], 478 'includes': [ '../build/java_apk.gypi' ],
467 }, 479 },
468 ], 480 ],
469 }], # OS=="android" 481 }], # OS=="android"
470 ], 482 ],
471 } 483 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/test/assets/test/notfound.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698