1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 default_applicable_licenses: ["external_rust_crates_tokio-test_license"], 6} 7 8// Added automatically by a large-scale-change 9// See: http://go/android-license-faq 10license { 11 name: "external_rust_crates_tokio-test_license", 12 visibility: [":__subpackages__"], 13 license_kinds: [ 14 "SPDX-license-identifier-MIT", 15 ], 16 license_text: [ 17 "LICENSE", 18 ], 19} 20 21rust_library { 22 name: "libtokio_test", 23 host_supported: true, 24 crate_name: "tokio_test", 25 cargo_env_compat: true, 26 cargo_pkg_version: "0.4.2", 27 srcs: ["src/lib.rs"], 28 edition: "2018", 29 rustlibs: [ 30 "libasync_stream", 31 "libbytes", 32 "libfutures_core", 33 "libtokio", 34 "libtokio_stream", 35 ], 36} 37 38rust_defaults { 39 name: "tokio-test_test_defaults", 40 crate_name: "tokio_test", 41 cargo_env_compat: true, 42 cargo_pkg_version: "0.4.2", 43 test_suites: ["general-tests"], 44 auto_gen_config: true, 45 edition: "2018", 46 rustlibs: [ 47 "libasync_stream", 48 "libbytes", 49 "libfutures_core", 50 "libfutures_util", 51 "libtokio", 52 "libtokio_stream", 53 "libtokio_test", 54 ], 55} 56 57rust_test { 58 name: "tokio-test_test_tests_block_on", 59 defaults: ["tokio-test_test_defaults"], 60 host_supported: true, 61 srcs: ["tests/block_on.rs"], 62 test_options: { 63 unit_test: true, 64 }, 65} 66 67rust_test { 68 name: "tokio-test_test_tests_io", 69 defaults: ["tokio-test_test_defaults"], 70 host_supported: true, 71 srcs: ["tests/io.rs"], 72 test_options: { 73 unit_test: true, 74 }, 75} 76 77rust_test { 78 name: "tokio-test_test_tests_macros", 79 defaults: ["tokio-test_test_defaults"], 80 host_supported: true, 81 srcs: ["tests/macros.rs"], 82 test_options: { 83 unit_test: true, 84 }, 85} 86