#include "chrome/browser/ui/views/web_apps/web_app_link_capturing_test_utils.h"
#include "base/check_is_test.h"
#include "base/test/test_future.h"
#include "base/time/time.h"
#include "chrome/browser/apps/link_capturing/link_capturing_features.h"
#include "chrome/browser/ui/intent_picker_tab_helper.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/browser/ui/views/intent_picker_bubble_view.h"
#include "chrome/browser/ui/views/location_bar/intent_chip_button.h"
#include "chrome/common/chrome_features.h"
#include "ui/events/event.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/test/button_test_api.h"
#include "ui/views/widget/any_widget_observer.h"
namespace web_app {
IntentChipButton* GetIntentPickerIcon(Browser* browser) { … }
IntentPickerBubbleView* intent_picker_bubble() { … }
testing::AssertionResult AwaitIntentPickerTabHelperIconUpdateComplete(
content::WebContents* web_contents) { … }
testing::AssertionResult WaitForIntentPickerToShow(Browser* browser) { … }
testing::AssertionResult ClickIntentPickerChip(Browser* browser) { … }
testing::AssertionResult ClickIntentPickerAndWaitForBubble(Browser* browser) { … }
views::Button* GetIntentPickerButtonAtIndex(size_t index) { … }
IntentChipVisibilityObserver::IntentChipVisibilityObserver(
IntentChipButton* intent_chip) { … }
IntentChipVisibilityObserver::~IntentChipVisibilityObserver() = default;
void IntentChipVisibilityObserver::WaitForChipToBeVisible() { … }
void IntentChipVisibilityObserver::OnChipVisibilityChanged(bool is_visible) { … }
}