#include "remoting/client/input/touch_input_scaler.h"
#include <stdint.h>
#include <cmath>
#include "remoting/protocol/protocol_mock_objects.h"
#include "remoting/protocol/test_event_matchers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
AllOf;
PrintToString;
namespace remoting {
MockInputStub;
TouchEvent;
TouchEventPoint;
EqualsTouchPointCoordinates;
EqualsTouchPointRadii;
namespace {
const float kDefaultRadius = …;
const float kDefaultXCoord = …;
const float kDefaultYCoord = …;
struct PointInfo { … };
const PointInfo kDefaultPointInfo = …;
}
class TouchInputScalerTest : public ::testing::Test { … };
TEST_F(TouchInputScalerTest, NoDimensionsSet) { … }
TEST_F(TouchInputScalerTest, BothDimensionsZero) { … }
TEST_F(TouchInputScalerTest, SetOnlyInputDimensions) { … }
TEST_F(TouchInputScalerTest, SetOnlyOutputDimensions) { … }
TEST_F(TouchInputScalerTest, NoClampingNoScaling) { … }
TEST_F(TouchInputScalerTest, ClampingNoScaling) { … }
TEST_F(TouchInputScalerTest, ClampingMultiplePointsNoScaling) { … }
TEST_F(TouchInputScalerTest, UpScalingNoClamping) { … }
TEST_F(TouchInputScalerTest, UpScalingWithClamping) { … }
TEST_F(TouchInputScalerTest, DownScalingNoClamping) { … }
TEST_F(TouchInputScalerTest, DownScalingWithClamping) { … }
TEST_F(TouchInputScalerTest, UpScaleRadii) { … }
TEST_F(TouchInputScalerTest, DownScaleRadii) { … }
TEST_F(TouchInputScalerTest, UpScaleCoordinatesAndRadii) { … }
TEST_F(TouchInputScalerTest, DownScaleCoordinatesAndRadii) { … }
}