// Copyright 2019 Google Inc. All Rights Reserved.
//
// 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_renderscript_nnapi",
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_test {
    name: "UiBenchMicrobenchmark",
    srcs: ["src/**/*.java"],

    static_libs: [
        "collector-device-lib",
        "androidx.test.uiautomator_uiautomator",
        "junit",
        "microbenchmark-device-lib",
        "launcher-helper-lib",
    ],

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

    data: [
        ":perfetto_artifacts",
        ":UiBench",
    ],

    sdk_version: "test_current",

    test_config: "configs/uibench-all.xml",

    test_options: {
        extra_test_configs: [
            "configs/uibench-dialoglist.xml",
            "configs/uibench-invalidate.xml",
        ],
    },

    test_suites: ["device-tests"],
}

java_library {
    name: "UiBenchMicrobenchmark-test-src",
    srcs: ["src/**/*.java"],

    static_libs: [
        "collector-device-lib",
        "androidx.test.uiautomator_uiautomator",
        "junit",
        "microbenchmark-device-lib",
        "launcher-helper-lib",
    ],

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