#include "chrome/browser/ui/views/profiles/profile_customization_bubble_sync_controller.h"
#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "base/time/time.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_syncable_service.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
namespace {
constexpr SkColor kNewProfileColor = …;
constexpr SkColor kSyncedProfileColor = …;
const char kTestingProfileName[] = …;
class FakeThemeService : public ThemeService { … };
class ProfileCustomizationBubbleSyncControllerTest : public testing::Test { … };
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldShowWhenSyncGetsDefaultTheme) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldShowWhenSyncDisabled) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenSyncGetsCustomColor) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenSyncGetsCustomColorBeforeStarting) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenSyncGetsCustomTheme) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenSyncGetsCustomThemeToInstall) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenSyncHasCustomPasshrase) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest, ShouldNotShowOnTimeout) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenProfileGetsDeleted) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest,
ShouldNotShowWhenViewGetsDeleted) { … }
TEST_F(ProfileCustomizationBubbleSyncControllerTest, ShouldAbortIfCalledAgain) { … }
}