#include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
#include "base/command_line.h"
#include "build/build_config.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/ui/startup/startup_tab_provider.h"
#include "chrome/common/url_constants.h"
#include "components/signin/public/base/signin_switches.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Creator;
namespace {
constexpr uint32_t kOnboardingTabs = …;
constexpr uint32_t kDistributionFirstRunTabs = …;
constexpr uint32_t kResetTriggerTabs = …;
constexpr uint32_t kPinnedTabs = …;
constexpr uint32_t kPreferencesTabs = …;
constexpr uint32_t kNewTabPageTabs = …;
constexpr uint32_t kPostCrashTabs = …;
constexpr uint32_t kCommandLineTabs = …;
#if !BUILDFLAG(IS_ANDROID)
constexpr uint32_t kNewFeaturesTabs = …;
constexpr uint32_t kPrivacySandboxTabs = …;
#endif
class FakeStartupTabProvider : public StartupTabProvider { … };
}
bool operator==(const StartupTab& actual_tab,
const std::string& expected_host) { … }
class StartupBrowserCreatorImplTest : public testing::Test { … };
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_Incognito) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_Crash) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_InitialPrefs) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_CommandLine) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_NewTabPage) { … }
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_NewFeaturesPage) { … }
#endif
#if !BUILDFLAG(IS_ANDROID)
TEST_F(StartupBrowserCreatorImplTest, DetermineStartupTabs_PrivacySandbox) { … }
#endif
TEST_F(StartupBrowserCreatorImplTest, DetermineBrowserOpenBehavior_Startup) { … }
TEST_F(StartupBrowserCreatorImplTest,
DetermineBrowserOpenBehavior_CmdLineTabs) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineBrowserOpenBehavior_PostCrash) { … }
TEST_F(StartupBrowserCreatorImplTest, DetermineBrowserOpenBehavior_NotStartup) { … }