#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/send_tab_to_self_sync_service_factory.h"
#include "chrome/browser/ui/actions/chrome_action_id.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_actions.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/send_tab_to_self/send_tab_to_self_bubble_controller.h"
#include "chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.h"
#include "chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container.h"
#include "components/send_tab_to_self/target_device_info.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "content/public/test/browser_test.h"
#include "ui/events/base_event_utils.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/views/layout/animating_layout_manager_test_util.h"
namespace send_tab_to_self {
namespace {
class TestSendTabToSelfBubbleController : public SendTabToSelfBubbleController { … };
}
class SendTabToSelfBubbleTest : public DialogBrowserTest { … };
#if BUILDFLAG(IS_WIN)
#define MAYBE_InvokeUi_ShowDeviceList …
#else
#define MAYBE_InvokeUi_ShowDeviceList …
#endif
IN_PROC_BROWSER_TEST_F(SendTabToSelfBubbleTest, MAYBE_InvokeUi_ShowDeviceList) { … }
IN_PROC_BROWSER_TEST_F(SendTabToSelfBubbleTest, InvokeUi_ShowSigninPromo) { … }
IN_PROC_BROWSER_TEST_F(SendTabToSelfBubbleTest,
InvokeUi_ShowNoTargetDevicePromo) { … }
IN_PROC_BROWSER_TEST_F(SendTabToSelfBubbleTest,
BubbleTriggersCorrectlyWhenPinned) { … }
}