//
// Copyright (C) 2018 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_windowing_animations_transitions",
    // 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: "FlickerTestsRotation",
    defaults: ["FlickerTestsDefault"],
    manifest: "AndroidManifest.xml",
    test_config_template: "AndroidTestTemplate.xml",
    test_suites: [
        "device-tests",
        "device-platinum-tests",
    ],
    srcs: ["src/**/*"],
    static_libs: ["FlickerTestsBase"],
    data: ["trace_config/*"],
}

////////////////////////////////////////////////////////////////////////////////
// Begin breakdowns for FlickerTestsRotation module

test_module_config {
    name: "FlickerTestsAppRotation-CatchAll",
    base: "FlickerTestsRotation",
    exclude_filters: [
        "com.android.server.wm.flicker.rotation.ChangeAppRotationTest",
        "com.android.server.wm.flicker.rotation.OpenShowWhenLockedSeamlessAppRotationTest",
        "com.android.server.wm.flicker.rotation.SeamlessAppRotationTest",
    ],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FlickerTestsAppRotation-ChangeAppRotationTest",
    base: "FlickerTestsRotation",
    include_filters: ["com.android.server.wm.flicker.rotation.ChangeAppRotationTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FlickerTestsAppRotation-OpenShowWhenLockedSeamlessAppRotationTest",
    base: "FlickerTestsRotation",
    include_filters: ["com.android.server.wm.flicker.rotation.OpenShowWhenLockedSeamlessAppRotationTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FlickerTestsAppRotation-SeamlessAppRotationTest",
    base: "FlickerTestsRotation",
    include_filters: ["com.android.server.wm.flicker.rotation.SeamlessAppRotationTest"],
    test_suites: ["device-tests"],
}

// End breakdowns for FlickerTestsRotation module
////////////////////////////////////////////////////////////////////////////////
