#include "remoting/host/linux/gnome_display_config_dbus_client.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "remoting/host/linux/scoped_glib.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/portal/scoped_glib.h"
namespace remoting {
namespace {
constexpr char kDisplayConfigType[] = …;
constexpr char kSingleDisplayConfig[] = …;
constexpr char kDualDisplayConfig[] = …;
ScopedGVariant CreateDisplayConfig(const char* serialized) { … }
}
class GnomeDisplayConfigDBusClientTest : public testing::Test { … };
TEST_F(GnomeDisplayConfigDBusClientTest, GetMonitorsConfigReturnsCorrectInfo) { … }
TEST_F(GnomeDisplayConfigDBusClientTest, CorrectInfoForSecondMonitor) { … }
TEST_F(GnomeDisplayConfigDBusClientTest, CorrectConfigBuiltForGnome) { … }
}