Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 1 | // Copyright (C) 2008 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 | |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame^] | 15 | java_defaults { |
| 16 | name: "CtsNetTestCasesDefaults", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 17 | defaults: ["cts_defaults"], |
| 18 | |
| 19 | // Include both the 32 and 64 bit versions |
| 20 | compile_multilib: "both", |
| 21 | |
| 22 | libs: [ |
| 23 | "voip-common", |
| 24 | "org.apache.http.legacy", |
| 25 | "android.test.base.stubs", |
| 26 | ], |
| 27 | |
| 28 | jni_libs: [ |
| 29 | "libcts_jni", |
| 30 | "libnativedns_jni", |
| 31 | "libnativemultinetwork_jni", |
| 32 | "libnativehelper_compat_libc++", |
| 33 | ], |
| 34 | |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 35 | srcs: [ |
| 36 | "src/**/*.java", |
| 37 | "src/**/*.kt", |
| 38 | ], |
| 39 | |
| 40 | static_libs: [ |
| 41 | "FrameworksNetCommonTests", |
| 42 | "core-tests-support", |
| 43 | "compatibility-device-util-axt", |
paulhu | 3cdc25c | 2019-05-23 19:16:47 +0800 | [diff] [blame] | 44 | "cts-net-utils", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 45 | "ctstestrunner-axt", |
| 46 | "ctstestserver", |
| 47 | "mockwebserver", |
| 48 | "junit", |
| 49 | "junit-params", |
| 50 | "truth-prebuilt", |
| 51 | ], |
| 52 | |
| 53 | // uncomment when b/13249961 is fixed |
| 54 | // sdk_version: "current", |
| 55 | platform_apis: true, |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame^] | 56 | } |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 57 | |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame^] | 58 | // Networking CTS tests for development and release. These tests always target the platform SDK |
| 59 | // version, and are subject to all the restrictions appropriate to that version. Before SDK |
| 60 | // finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release |
| 61 | // devices. |
| 62 | android_test { |
| 63 | name: "CtsNetTestCases", |
| 64 | defaults: ["CtsNetTestCasesDefaults"], |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 65 | test_suites: [ |
| 66 | "cts", |
| 67 | "vts", |
| 68 | "general-tests", |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame^] | 69 | ], |
| 70 | test_config_template: "AndroidTestTemplate.xml", |
| 71 | } |
| 72 | |
| 73 | // Networking CTS tests that have a min_sdk_version of the latest released SDK. These tests can |
| 74 | // be installed on release devices at any point in the release cycle and are useful for qualifying |
| 75 | // mainline modules on release devices. |
| 76 | android_test { |
| 77 | name: "CtsNetTestCasesLatestSdk", |
| 78 | defaults: ["CtsNetTestCasesDefaults"], |
| 79 | min_sdk_version: "29", |
| 80 | target_sdk_version: "29", |
| 81 | test_suites: [ |
Chen Zhu | c3bd834 | 2019-08-16 16:33:04 -0700 | [diff] [blame] | 82 | "mts", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 83 | ], |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame^] | 84 | test_config_template: "AndroidTestTemplate.xml", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 85 | } |