OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//build/util/version.gni") | 6 import("//build/util/version.gni") |
7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 assert(!is_component_build, "Cronet requires static library build.") | 10 assert(!is_component_build, "Cronet requires static library build.") |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 DEPRECATED_java_in_dir = "test/src" | 402 DEPRECATED_java_in_dir = "test/src" |
403 | 403 |
404 deps = [ | 404 deps = [ |
405 ":cronet_api", | 405 ":cronet_api", |
406 ":cronet_java", | 406 ":cronet_java", |
407 "//base:base_java", | 407 "//base:base_java", |
408 "//net/android:net_java_test_support", | 408 "//net/android:net_java_test_support", |
409 ] | 409 ] |
410 } | 410 } |
411 | 411 |
| 412 android_assets("cronet_test_apk_assets") { |
| 413 testonly = true |
| 414 |
| 415 # Need to use renaming_sources to maintain subdirectories. |
| 416 renaming_sources = [ |
| 417 "test/assets/test/cacheable.txt", |
| 418 "test/assets/test/cacheable.txt.mock-http-headers", |
| 419 "test/assets/test/content_length_mismatch.html", |
| 420 "test/assets/test/content_length_mismatch.html.mock-http-headers", |
| 421 "test/assets/test/datareductionproxysuccess.txt", |
| 422 "test/assets/test/datareductionproxysuccess.txt.mock-http-headers", |
| 423 "test/assets/test/multiredirect.html", |
| 424 "test/assets/test/multiredirect.html.mock-http-headers", |
| 425 "test/assets/test/notfound.html", |
| 426 "test/assets/test/notfound.html.mock-http-headers", |
| 427 "test/assets/test/quic_data/simple.txt", |
| 428 "test/assets/test/redirect.html", |
| 429 "test/assets/test/redirect.html.mock-http-headers", |
| 430 "test/assets/test/redirect_invalid_scheme.html", |
| 431 "test/assets/test/redirect_invalid_scheme.html.mock-http-headers", |
| 432 "test/assets/test/sdch/dict/LeQxM80O", |
| 433 "test/assets/test/sdch/dict/LeQxM80O.mock-http-headers", |
| 434 "test/assets/test/sdch/index", |
| 435 "test/assets/test/sdch/index.mock-http-headers", |
| 436 "test/assets/test/sdch/LeQxM80O_encoded", |
| 437 "test/assets/test/sdch/LeQxM80O_encoded.mock-http-headers", |
| 438 "test/assets/test/secureproxychecksuccess.txt", |
| 439 "test/assets/test/secureproxychecksuccess.txt.mock-http-headers", |
| 440 "test/assets/test/success.txt", |
| 441 "test/assets/test/success.txt.mock-http-headers", |
| 442 ] |
| 443 |
| 444 # Maintain directory structure. Example entry: "test/sdch/index". |
| 445 renaming_destinations = rebase_path(renaming_sources, "test/assets") |
| 446 } |
| 447 |
412 android_apk("cronet_test_apk") { | 448 android_apk("cronet_test_apk") { |
413 testonly = true | 449 testonly = true |
414 apk_name = "CronetTest" | 450 apk_name = "CronetTest" |
415 android_manifest = "test/AndroidManifest.xml" | 451 android_manifest = "test/AndroidManifest.xml" |
416 native_libs = [ "libcronet_tests.so" ] | 452 native_libs = [ "libcronet_tests.so" ] |
417 asset_location = "test/assets" | |
418 | 453 |
419 deps = [ | 454 deps = [ |
| 455 ":cronet_test_apk_assets", |
420 ":cronet_test_apk_java", | 456 ":cronet_test_apk_java", |
421 ":cronet_test_apk_resources", | 457 ":cronet_test_apk_resources", |
422 ":cronet_tests", | 458 ":cronet_tests", |
423 "//base:base_java", | 459 "//base:base_java", |
424 ] | 460 ] |
425 | 461 |
426 run_findbugs = true | 462 run_findbugs = true |
427 } | 463 } |
428 | 464 |
429 instrumentation_test_apk("cronet_test_instrumentation_apk") { | 465 instrumentation_test_apk("cronet_test_instrumentation_apk") { |
(...skipping 24 matching lines...) Expand all Loading... |
454 | 490 |
455 deps = [ | 491 deps = [ |
456 ":cronet_static", | 492 ":cronet_static", |
457 "//base", | 493 "//base", |
458 "//base/test:test_support", | 494 "//base/test:test_support", |
459 "//components/metrics", | 495 "//components/metrics", |
460 "//net", | 496 "//net", |
461 "//testing/gtest", | 497 "//testing/gtest", |
462 ] | 498 ] |
463 } | 499 } |
OLD | NEW |