// 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 {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

android_test {
    name: "RollbackTest",
    manifest: "RollbackTest/AndroidManifest.xml",
    platform_apis: true,
    srcs: ["RollbackTest/src/**/*.java"],
    static_libs: ["androidx.test.rules", "cts-rollback-lib", "cts-install-lib"],
    test_suites: ["general-tests"],
    test_config: "RollbackTest.xml",
    java_resources: [
        ":com.android.apex.apkrollback.test_v2",
        ":com.android.apex.apkrollback.test_v2Crashing"
    ],
}

java_test_host {
    name: "StagedRollbackTest",
    srcs: ["StagedRollbackTest/src/**/*.java"],
    libs: ["tradefed"],
    static_libs: [
        "compatibility-tradefed",
        "frameworks-base-hostutils",
        "RollbackTestLib",
        "testng",
    ],
    test_suites: ["general-tests"],
    test_config: "StagedRollbackTest.xml",
    data: [":com.android.apex.apkrollback.test_v1"],
}

java_test_host {
    name: "NetworkStagedRollbackTest",
    srcs: ["NetworkStagedRollbackTest/src/**/*.java"],
    libs: ["tradefed"],
    static_libs: ["RollbackTestLib", "frameworks-base-hostutils"],
    test_suites: ["general-tests"],
    test_config: "NetworkStagedRollbackTest.xml",
}

java_test_host {
    name: "MultiUserRollbackTest",
    srcs: ["MultiUserRollbackTest/src/**/*.java"],
    libs: ["tradefed"],
    static_libs: [
        "frameworks-base-hostutils",
    ],
    test_suites: ["general-tests"],
    test_config: "MultiUserRollbackTest.xml",
}

java_library_host {
    name: "RollbackTestLib",
    srcs: ["lib/src/**/*.java"],
    libs: ["tradefed"],
}

genrule {
  name: "com.android.apex.apkrollback.test.pem",
  out: ["com.android.apex.apkrollback.test.pem"],
  cmd: "openssl genrsa -out $(out) 4096",
}

genrule {
  name: "com.android.apex.apkrollback.test.pubkey",
  srcs: [":com.android.apex.apkrollback.test.pem"],
  out: ["com.android.apex.apkrollback.test.pubkey"],
  tools: ["avbtool"],
  cmd: "$(location avbtool) extract_public_key --key $(in) --output $(out)",
}

apex_key {
  name: "com.android.apex.apkrollback.test.key",
  private_key: ":com.android.apex.apkrollback.test.pem",
  public_key: ":com.android.apex.apkrollback.test.pubkey",
  installable: false,
}

apex {
  name: "com.android.apex.apkrollback.test_v1",
  manifest: "testdata/manifest_v1.json",
  androidManifest: "testdata/AndroidManifest.xml",
  file_contexts: ":apex.test-file_contexts",
  key: "com.android.apex.apkrollback.test.key",
  apps: ["TestAppAv1"],
  installable: false,
  updatable: false,
}

apex {
  name: "com.android.apex.apkrollback.test_v2",
  manifest: "testdata/manifest_v2.json",
  androidManifest: "testdata/AndroidManifest.xml",
  file_contexts: ":apex.test-file_contexts",
  key: "com.android.apex.apkrollback.test.key",
  apps: ["TestAppAv2"],
  installable: false,
  updatable: false,
}

apex {
  name: "com.android.apex.apkrollback.test_v2Crashing",
  manifest: "testdata/manifest_v2.json",
  androidManifest: "testdata/AndroidManifest.xml",
  file_contexts: ":apex.test-file_contexts",
  key: "com.android.apex.apkrollback.test.key",
  apps: ["TestAppACrashingV2"],
  installable: false,
  updatable: false,
}
