// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    default_team: "trendy_team_fwk_core_networking",
    default_applicable_licenses: ["Android-Apache-2.0"],
}

java_defaults {
    name: "CtsTetheringTestDefaults",
    defaults: ["cts_defaults"],

    libs: [
        "android.test.base",
    ],

    srcs: [
        "src/**/*.java",
    ],

    static_libs: [
        "TetheringCommonTests",
        "compatibility-device-util-axt",
        "cts-net-utils",
        "net-tests-utils",
        "ctstestrunner-axt",
        "junit",
        "junit-params",
    ],

    jni_libs: [
        // For mockito extended
        "libdexmakerjvmtiagent",
        "libstaticjvmtiagent",
    ],

    // Change to system current when TetheringManager move to bootclass path.
    platform_apis: true,
    host_required: ["net-tests-utils-host-common"],
}

// Tethering CTS tests that target the latest released SDK. These tests can be installed on release
// devices which has equal or lowner sdk version than target sdk and are useful for qualifying
// mainline modules on release devices.
android_test {
    name: "CtsTetheringTestLatestSdk",
    defaults: [
        "ConnectivityTestsLatestSdkDefaults",
        "CtsTetheringTestDefaults",
    ],

    min_sdk_version: "30",

    static_libs: [
        "TetheringIntegrationTestsLatestSdkLib",
    ],

    test_suites: [
        "general-tests",
        "mts-tethering",
    ],

    test_config_template: "AndroidTestTemplate.xml",

    // Include both the 32 and 64 bit versions
    compile_multilib: "both",
    jarjar_rules: ":NetworkStackJarJarRules",
}

// Tethering CTS tests for development and release. These tests always target the platform SDK
// version, and are subject to all the restrictions appropriate to that version. Before SDK
// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
// devices.
android_test {
    name: "CtsTetheringTest",
    defaults: ["CtsTetheringTestDefaults"],

    static_libs: [
        "TetheringIntegrationTestsLib",
    ],

    // Tag this module as a cts test artifact
    test_suites: [
        "cts",
        "general-tests",
    ],

    test_config_template: "AndroidTestTemplate.xml",

    // Include both the 32 and 64 bit versions
    compile_multilib: "both",
    jarjar_rules: ":NetworkStackJarJarRules",
}
