#include "chrome/browser/ui/views/dark_mode_manager_linux.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/ui_features.h"
#include "dbus/mock_bus.h"
#include "dbus/mock_object_proxy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/linux/fake_linux_ui.h"
#include "ui/native_theme/native_theme.h"
namespace ui {
namespace {
class MockLinuxUi : public FakeLinuxUi { … };
class MockNativeTheme : public NativeTheme { … };
ACTION_P2(RegisterSignalCallback, signal_callback, connected_callback) { … }
ACTION_P(MethodCallback,
color_scheme_response_callback,
color_scheme_error_callback) { … }
MATCHER_P2(Calls, interface, member, "") { … }
}
_;
ByMove;
Return;
StrictMock;
class DarkModeManagerLinuxTest : public testing::Test { … };
TEST_F(DarkModeManagerLinuxTest, UseNativeThemeSetting) { … }
TEST_F(DarkModeManagerLinuxTest, UsePortalSetting) { … }
TEST_F(DarkModeManagerLinuxTest, UsePortalAccentColor) { … }
}