#include "chrome/browser/ui/webui/cr_components/customize_color_scheme_mode/customize_color_scheme_mode_handler.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_web_contents_factory.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/webui/resources/cr_components/customize_color_scheme_mode/customize_color_scheme_mode.mojom.h"
namespace content {
class BrowserContext;
}
namespace {
_;
class MockClient : public customize_color_scheme_mode::mojom::
CustomizeColorSchemeModeClient { … };
class MockThemeService : public ThemeService { … };
std::unique_ptr<TestingProfile> MakeTestingProfile() { … }
}
class CustomizeColorSchemeModeHandlerTest : public testing::Test { … };
TEST_F(CustomizeColorSchemeModeHandlerTest, InitializeColorSchemeMode) { … }
TEST_F(CustomizeColorSchemeModeHandlerTest, OnThemeChanged) { … }
TEST_F(CustomizeColorSchemeModeHandlerTest, SetColorSchemeMode) { … }