• 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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "external_cronet_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["external_cronet_license"],
22}
23
24java_test_host {
25    name: "net_unittests_tester",
26    srcs: ["src/**/*.java"],
27    auto_gen_config: false,
28    test_config: "AndroidNetTest.xml",
29    libs: [
30        "tradefed",
31        "framework-annotations-lib",
32    ],
33    data: [
34        ":cronet_net_tester_app",
35        ":net_unittests_data",
36    ],
37    test_suites: [
38        "general-tests",
39        "mts-tethering",
40    ],
41    // This build fails on windows targets with "windows_common" depends on some disabled modules
42    // that are used by this test. Thus, disable this on target windows.
43    // TODO(aymanm): Remove this when b/201754360 is fixed.
44    target: {
45        windows: {
46            enabled: false,
47        },
48    },
49}
50
51java_test_host {
52    name: "cronet_unittests_tester",
53    srcs: ["src/**/*.java"],
54    auto_gen_config: false,
55    test_config: "AndroidTest.xml",
56    libs: [
57        "tradefed",
58        "framework-annotations-lib",
59    ],
60    test_suites: [
61        "general-tests",
62        "mts-tethering",
63    ],
64    // This build fails on windows targets with "windows_common" depends on some disabled modules
65    // that are used by this test. Thus, disable this on target windows.
66    // TODO(aymanm): Remove this when b/201754360 is fixed.
67    target: {
68        windows: {
69            enabled: false,
70        },
71    },
72    data: [
73        ":cronet_tester_app",
74    ],
75}
76