#include "remoting/client/ui/desktop_viewport.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/stringprintf.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
namespace {
const float EPSILON = …;
}
class DesktopViewportTest : public testing::Test { … };
void DesktopViewportTest::SetUp() { … }
void DesktopViewportTest::TearDown() { … }
void DesktopViewportTest::AssertTransformationReceived(
const base::Location& from_here,
float scale,
float offset_x,
float offset_y) { … }
ViewMatrix DesktopViewportTest::ReleaseReceivedTransformation() { … }
void DesktopViewportTest::OnTransformationChanged(const ViewMatrix& matrix) { … }
TEST_F(DesktopViewportTest, TestViewportInitialization1) { … }
TEST_F(DesktopViewportTest, TestViewportInitialization2) { … }
TEST_F(DesktopViewportTest, TestViewportInitialization3) { … }
TEST_F(DesktopViewportTest, TestViewportInitialization4) { … }
TEST_F(DesktopViewportTest, TestMoveDesktop) { … }
TEST_F(DesktopViewportTest, TestMoveAndScaleDesktop) { … }
TEST_F(DesktopViewportTest, TestSetViewportCenter) { … }
TEST_F(DesktopViewportTest, TestScaleDesktop) { … }
TEST_F(DesktopViewportTest, AsymmetricalSafeInsetsPanAndZoom) { … }
TEST_F(DesktopViewportTest, SingleNotchSafeInsetPanAndZoom) { … }
TEST_F(DesktopViewportTest, SymmetricSafeInsetPanAndZoom) { … }
TEST_F(DesktopViewportTest, RemoveSafeInsets) { … }
TEST_F(DesktopViewportTest, AddAndRemoveSafeInsets) { … }
}