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", |
Jiyong Park | 616e299 | 2020-05-19 21:12:39 +0900 | [diff] [blame] | 25 | "android.test.base", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 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 | ], |
Luke Huang | 1eebfa3 | 2020-06-20 11:49:40 +0800 | [diff] [blame] | 39 | jarjar_rules: "jarjar-rules-shared.txt", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 40 | static_libs: [ |
| 41 | "FrameworksNetCommonTests", |
Remi NGUYEN VAN | be87265 | 2020-05-12 18:07:17 +0900 | [diff] [blame] | 42 | "TestNetworkStackLib", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 43 | "compatibility-device-util-axt", |
Luke Huang | 1eebfa3 | 2020-06-20 11:49:40 +0800 | [diff] [blame] | 44 | "core-tests-support", |
paulhu | 3cdc25c | 2019-05-23 19:16:47 +0800 | [diff] [blame] | 45 | "cts-net-utils", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 46 | "ctstestrunner-axt", |
| 47 | "ctstestserver", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 48 | "junit", |
| 49 | "junit-params", |
Luke Huang | 1eebfa3 | 2020-06-20 11:49:40 +0800 | [diff] [blame] | 50 | "mockwebserver", |
| 51 | "net-utils-framework-common", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 52 | "truth-prebuilt", |
| 53 | ], |
| 54 | |
| 55 | // uncomment when b/13249961 is fixed |
| 56 | // sdk_version: "current", |
| 57 | platform_apis: true, |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 58 | } |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 59 | |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 60 | // Networking CTS tests for development and release. These tests always target the platform SDK |
| 61 | // version, and are subject to all the restrictions appropriate to that version. Before SDK |
| 62 | // finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release |
| 63 | // devices. |
| 64 | android_test { |
| 65 | name: "CtsNetTestCases", |
| 66 | defaults: ["CtsNetTestCasesDefaults"], |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 67 | test_suites: [ |
| 68 | "cts", |
Dan Shi | 210a4a7 | 2020-03-19 14:07:07 -0700 | [diff] [blame] | 69 | "vts10", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 70 | "general-tests", |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 71 | ], |
| 72 | test_config_template: "AndroidTestTemplate.xml", |
| 73 | } |
| 74 | |
Lorenzo Colitti | 5343012 | 2020-06-13 00:47:44 +0900 | [diff] [blame] | 75 | // Networking CTS tests that target the latest released SDK. These tests can be installed on release |
| 76 | // devices at any point in the Android release cycle and are useful for qualifying mainline modules |
| 77 | // on release devices. |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 78 | android_test { |
| 79 | name: "CtsNetTestCasesLatestSdk", |
| 80 | defaults: ["CtsNetTestCasesDefaults"], |
Ken Chen | 5dd02e3 | 2020-05-18 19:55:29 +0800 | [diff] [blame] | 81 | jni_uses_sdk_apis: true, |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 82 | min_sdk_version: "29", |
Lorenzo Colitti | 5343012 | 2020-06-13 00:47:44 +0900 | [diff] [blame] | 83 | target_sdk_version: "30", |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 84 | test_suites: [ |
easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 85 | "general-tests", |
Chen Zhu | c3bd834 | 2019-08-16 16:33:04 -0700 | [diff] [blame] | 86 | "mts", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 87 | ], |
Lorenzo Colitti | a32d455 | 2020-02-06 22:37:07 +0900 | [diff] [blame] | 88 | test_config_template: "AndroidTestTemplate.xml", |
Luke Huang | 971b795 | 2019-04-24 21:27:40 -0700 | [diff] [blame] | 89 | } |