//
// Copyright (C) 2025 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.
//

android_test {
    name: "WMShellExplicitFlickerTestsBubbles",
    manifest: "AndroidManifest.xml",
    test_config_template: "AndroidTestTemplate.xml",
    srcs: ["**/*.kt"],
    data: [
        ":FlickerTestApp",
        "trace_config/*",
    ],
    platform_apis: true,
    certificate: "platform",
    optimize: {
        enabled: false,
    },
    test_suites: ["device-tests"],
    libs: ["android.test.runner.stubs.system"],
    static_libs: [
        "FlickerTestsBase",
        "androidx.test.ext.junit",
        "flag-junit",
        "flickerlib",
        "flickerlib-helpers",
        "flickerlib-trace_processor_shell",
        "flickertestapplib",
        "platform-test-annotations",
        "wm-flicker-common-app-helpers",
        "wm-shell-flicker-utils",
    ],
}

////////////////////////////////////////////////////////////////////////////////
// Begin breakdowns for WMShellExplicitFlickerTestsBubbles module

test_module_config {
    name: "WMShellExplicitFlickerTestsBubbles-CatchAll",
    base: "WMShellExplicitFlickerTestsBubbles",
    exclude_filters: [
        "com.android.wm.shell.flicker.bubbles.CollapseBubbleViaBackTest",
        "com.android.wm.shell.flicker.bubbles.DismissExpandedBubbleViaBubbleViewTest",
        "com.android.wm.shell.flicker.bubbles.EnterBubbleViaBubbleMenuTest",
        "com.android.wm.shell.flicker.bubbles.ExpandBubbleViaBubbleStackTest",
    ],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "WMShellExplicitFlickerTestsBubbles-CollapseBubbleViaBackTest",
    base: "WMShellExplicitFlickerTestsBubbles",
    include_filters: ["com.android.wm.shell.flicker.bubbles.CollapseBubbleViaBackTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "WMShellExplicitFlickerTestsBubbles-DismissExpandedBubbleViaBubbleViewTest",
    base: "WMShellExplicitFlickerTestsBubbles",
    include_filters: ["com.android.wm.shell.flicker.bubbles.DismissExpandedBubbleViaBubbleViewTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "WMShellExplicitFlickerTestsBubbles-EnterBubbleViaBubbleMenuTest",
    base: "WMShellExplicitFlickerTestsBubbles",
    include_filters: ["com.android.wm.shell.flicker.bubbles.EnterBubbleViaBubbleMenuTest"],
    test_suites: ["device-tests"],
}

test_module_config {
    name: "WMShellExplicitFlickerTestsBubbles-ExpandBubbleViaBubbleStackTest",
    base: "WMShellExplicitFlickerTestsBubbles",
    include_filters: ["com.android.wm.shell.flicker.bubbles.ExpandBubbleViaBubbleStackTest"],
    test_suites: ["device-tests"],
}
