chromium/chrome/browser/ui/startup/startup_tab_provider_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/startup/startup_tab_provider.h"

#include "build/build_config.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

#if !BUILDFLAG(IS_ANDROID)
#include "base/values.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_builder.h"
#endif  // !BUILDFLAG(IS_ANDROID)

#if BUILDFLAG(IS_WIN)
#define CMD_ARG
#else
#define CMD_ARG(x)
#endif

TEST(StartupTabProviderTest, GetInitialPrefsTabsForState) {}

TEST(StartupTabProviderTest, GetInitialPrefsTabsForState_FirstRunOnly) {}

TEST(StartupTabProviderTest, GetResetTriggerTabsForState) {}

TEST(StartupTabProviderTest, GetResetTriggerTabsForState_Negative) {}

TEST(StartupTabProviderTest, GetPinnedTabsForState) {}

TEST(StartupTabProviderTest, GetPinnedTabsForState_Negative) {}

TEST(StartupTabProviderTest, GetPreferencesTabsForState) {}

TEST(StartupTabProviderTest, GetPreferencesTabsForState_WrongType) {}

TEST(StartupTabProviderTest, GetPreferencesTabsForState_NotFirstBrowser) {}

TEST(StartupTabProviderTest, GetNewTabPageTabsForState) {}

TEST(StartupTabProviderTest, GetNewTabPageTabsForState_Negative) {}

TEST(StartupTabProviderTest, GetCommandLineTabs) {}

// This test fails on Windows. TODO(crbug.com/40265634): Investigate and
// fix this test on Windows.
#if BUILDFLAG(IS_WIN)
#define MAYBE_GetCommandLineTabsFileUrl
#else
#define MAYBE_GetCommandLineTabsFileUrl
#endif
TEST(StartupTabProviderTest, MAYBE_GetCommandLineTabsFileUrl) {}

#if !BUILDFLAG(IS_ANDROID)

class StartupTabProviderPrivacySandboxTest : public testing::Test {};

TEST_F(StartupTabProviderPrivacySandboxTest, GetPrivacySandboxTabsForState) {}

TEST_F(StartupTabProviderPrivacySandboxTest,
       GetPrivacySandboxTabsForState_SuitableTabAlready) {}

TEST_F(StartupTabProviderPrivacySandboxTest,
       GetPrivacySandboxTabsForState_ExtensionControlledNtp) {}

TEST_F(StartupTabProviderPrivacySandboxTest,
       GetPrivacySandboxTabsForState_DseControlledNtp) {}

#endif  // !BUILDFLAG(IS_ANDROID)