//
// 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: "FlickerTestsAppClose",
    defaults: ["FlickerTestsDefault"],
    manifest: "AndroidManifest.xml",
    test_config_template: "AndroidTestTemplate.xml",
    srcs: ["src/**/*"],
    static_libs: ["FlickerTestsBase"],
    data: ["trace_config/*"],
}

////////////////////////////////////////////////////////////////////////////////
// Begin breakdowns for FlickerTestsAppClose module

test_module_config {
    name: "FlickerTestsAppClose-CatchAll",
    base: "FlickerTestsAppClose",
    exclude_filters: [
        "com.android.server.wm.flicker.close.CloseAppBackButtonTest",
        "com.android.server.wm.flicker.close.CloseAppHomeButtonTest",
        "com.android.server.wm.flicker.close.",
    ],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FlickerTestsAppClose-CloseAppBackButtonTest",
    base: "FlickerTestsAppClose",
    include_filters: ["com.android.server.wm.flicker.close.CloseAppBackButtonTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FlickerTestsAppClose-CloseAppHomeButtonTest",
    base: "FlickerTestsAppClose",
    include_filters: ["com.android.server.wm.flicker.close.CloseAppHomeButtonTest"],
    test_suites: ["device-tests"],
}

// End breakdowns for FlickerTestsAppClose module
////////////////////////////////////////////////////////////////////////////////
