#include "chrome/browser/ui/views/tabs/tab_hover_card_test_util.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/tabs/tab.h"
#include "chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h"
#include "chrome/browser/ui/views/tabs/tab_hover_card_controller.h"
#include "chrome/browser/ui/views/tabs/tab_strip.h"
#include "ui/views/test/widget_test.h"
namespace test {
TabHoverCardTestUtil::TabHoverCardTestUtil()
: … { … }
TabHoverCardTestUtil::~TabHoverCardTestUtil() { … }
TabStrip* TabHoverCardTestUtil::GetTabStrip(Browser* browser) { … }
TabHoverCardBubbleView* TabHoverCardTestUtil::GetHoverCard(
TabStrip* tab_strip) { … }
TabHoverCardBubbleView* TabHoverCardTestUtil::WaitForHoverCardVisible(
TabStrip* tab_strip) { … }
bool TabHoverCardTestUtil::IsHoverCardVisible(TabStrip* tab_strip) { … }
int TabHoverCardTestUtil::GetHoverCardsSeenCount(Browser* browser) { … }
TabHoverCardBubbleView* TabHoverCardTestUtil::SimulateHoverTab(Browser* browser,
int tab_index) { … }
TabHoverCardTestUtil::HoverCardDestroyedWaiter::HoverCardDestroyedWaiter(
TabStrip* tab_strip) { … }
TabHoverCardTestUtil::HoverCardDestroyedWaiter::~HoverCardDestroyedWaiter() =
default;
void TabHoverCardTestUtil::HoverCardDestroyedWaiter::Wait() { … }
void TabHoverCardTestUtil::HoverCardDestroyedWaiter::OnWidgetDestroyed(
views::Widget* widget) { … }
}