• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15
16// Tests in this folder are included both in unit tests and CTS.
17// They must be fast and stable, and exercise public or test APIs.
18
19package {
20    default_team: "trendy_team_fwk_core_networking",
21    // See: http://go/android-license-faq
22    default_applicable_licenses: ["Android-Apache-2.0"],
23}
24
25android_test {
26    name: "NetHttpCoverageTests",
27    enforce_default_target_sdk_version: true,
28    min_sdk_version: "30",
29    test_suites: [
30        "general-tests",
31        "mts-tethering",
32    ],
33    defaults: [
34        "cronet_java_tests",
35    ],
36    static_libs: [
37        "modules-utils-native-coverage-listener",
38        "CtsNetHttpTestsLib",
39        "cronet_aml_api_java",
40        "cronet_aml_java__testing",
41    ],
42    compile_multilib: "both", // Include both the 32 and 64 bit versions
43    jni_libs: [
44        "libnativecoverage",
45    ],
46}
47
48// This is required to keep testing Cronet Stable. TH does not support, trivially, presubmit
49// testing of non-trunk_staging targets. In trunk_staging, Cronet ToT is "selected", while
50// Stable is selected everywhere else. To circumvent that, we expose a targets which are
51// always backed by Cronet Stable (hence the stable_ prefix).
52android_test {
53    name: "StableNetHttpCoverageTests",
54    enforce_default_target_sdk_version: true,
55    min_sdk_version: "30",
56    test_suites: [
57        "general-tests",
58        "mts-tethering",
59    ],
60    static_libs: [
61        "modules-utils-native-coverage-listener",
62        "CtsNetHttpTestsLib",
63        "stable_cronet_java_tests",
64        "stable_cronet_api_java",
65        "stable_cronet_java__testing",
66    ],
67    data: [":stable_cronet_javatests_resources"],
68    compile_multilib: "both", // Include both the 32 and 64 bit versions
69    jni_libs: [
70        "libnativecoverage",
71        "stable_cronet_components_cronet_android_cronet_tests__testing",
72        "stable_cronet_components_cronet_android_cronet__testing",
73        "stable_cronet_third_party_netty_tcnative_netty_tcnative_so__testing",
74    ],
75    test_config: "StableAndroidTest.xml",
76}
77