Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc24da90 authored by Pat Manning's avatar Pat Manning
Browse files

Delete flag-based test now that flag is on by default in staging where tests run.

Fix: 309921805
Test: None.
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD
Change-Id: I19339253487c6cb30ab02ee6f824efa520f878b9
parent a20e964c
Loading
Loading
Loading
Loading
+0 −46
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 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 com.android.quickstep;

import com.android.launcher3.Flags;
import com.android.launcher3.InvariantDeviceProfile;

import org.junit.After;
import org.junit.Before;

/**
 * Tests the Icon App Chip Menu in overview.
 *
 * <p>Same tests as TaplOverviewIconTest with the Flag FLAG_ENABLE_OVERVIEW_ICON_MENU enabled.
 * This class can be removed once FLAG_ENABLE_OVERVIEW_ICON_MENU is enabled by default.
 */
public class TaplOverviewIconAppChipMenuTest extends TaplOverviewIconTest {

    @Before
    public void setUp() throws Exception {
        mSetFlagsRule.enableFlags(Flags.FLAG_ENABLE_OVERVIEW_ICON_MENU); // Call before super.setUp
        super.setUp();
        executeOnLauncher(launcher -> InvariantDeviceProfile.INSTANCE.get(launcher).onConfigChanged(
                launcher));
    }

    @After
    public void tearDown() {
        mSetFlagsRule.disableFlags(Flags.FLAG_ENABLE_OVERVIEW_ICON_MENU);
        executeOnLauncher(launcher -> InvariantDeviceProfile.INSTANCE.get(launcher).onConfigChanged(
                launcher));
    }
}