#include "base/feature_list.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/optimization_guide/browser_test_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/organization/tab_organization_service.h"
#include "chrome/browser/ui/tabs/organization/tab_organization_utils.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
#include "chrome/browser/ui/views/tabs/tab_organization_button.h"
#include "chrome/browser/ui/views/tabs/tab_search_button.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/optimization_guide/core/model_execution/model_execution_features.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/test/event_generator.h"
class TabSearchContainerBrowserTest : public InProcessBrowserTest { … };
#if BUILDFLAG(IS_WIN)
#define MAYBE_TogglesActionUIState …
#else
#define MAYBE_TogglesActionUIState …
#endif
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
MAYBE_TogglesActionUIState) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_TogglesActionUIStateOnlyInCorrectBrowser …
#else
#define MAYBE_TogglesActionUIStateOnlyInCorrectBrowser …
#endif
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
MAYBE_TogglesActionUIStateOnlyInCorrectBrowser) { … }
#if BUILDFLAG(IS_WIN)
#define MAYBE_DoesntShowIfTabStripModalUIExists …
#else
#define MAYBE_DoesntShowIfTabStripModalUIExists …
#endif
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
MAYBE_DoesntShowIfTabStripModalUIExists) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
BlocksTabStripModalUIWhileShown) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest, DelaysShow) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest, DelaysHide) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
ImmediatelyHidesWhenOrganizeButtonClicked) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
ImmediatelyHidesWhenOrganizeButtonDismissed) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
DelayedHidesWhenOrganizeButtonTimesOut) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
LogsSuccessWhenButtonClicked) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
LogsFailureWhenButtonDismissed) { … }
IN_PROC_BROWSER_TEST_F(TabSearchContainerBrowserTest,
LogsFailureWhenButtonTimeout) { … }