#include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h"
#include <memory>
#include "base/command_line.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/test_extension_service.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/signin/bubble_signin_promo_delegate.h"
#include "chrome/browser/ui/singleton_tabs.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_profile.h"
#include "components/signin/public/base/account_consistency_method.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "ui/events/event_constants.h"
#include "ui/gfx/range/range.h"
#if !BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ui/views/profiles/profile_menu_view.h"
#endif
class BookmarkBubbleSignInDelegateTest : public InProcessBrowserTest { … };
void BookmarkBubbleSignInDelegateTest::ReplaceBlank(Browser* browser) { … }
void BookmarkBubbleSignInDelegateTest::SignInBrowser(Browser* browser) { … }
IN_PROC_BROWSER_TEST_F(BookmarkBubbleSignInDelegateTest, OnSignInLinkClicked) { … }
IN_PROC_BROWSER_TEST_F(BookmarkBubbleSignInDelegateTest,
OnSignInLinkClickedReusesBlank) { … }
IN_PROC_BROWSER_TEST_F(BookmarkBubbleSignInDelegateTest,
OnSignInLinkClickedIncognito_RegularBrowserWithTabs) { … }
IN_PROC_BROWSER_TEST_F(BookmarkBubbleSignInDelegateTest,
OnSignInLinkClickedIncognito_RegularBrowserClosed) { … }
IN_PROC_BROWSER_TEST_F(BookmarkBubbleSignInDelegateTest, BrowserRemoved) { … }