@@ -72,6 +72,9 @@ TEST_F(AVInputTest, RegisteredMethods)
72
72
EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" contentProtected" )));
73
73
EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" setEdid2AllmSupport" )));
74
74
EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" getEdid2AllmSupport" )));
75
+ EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" setVRRSupport" )));
76
+ EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" getVRRSupport" )));
77
+ EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" getVRRFrameRate" )));
75
78
}
76
79
77
80
TEST_F (AVInputTest, contentProtected)
@@ -111,3 +114,21 @@ TEST_F(AVInputDsTest, setEdid2AllmSupport)
111
114
EXPECT_EQ (response, string (" {\" success\" :true}" ));
112
115
}
113
116
117
+ TEST_F (AVInputDsTest, getVRRSupport)
118
+ {
119
+ EXPECT_EQ (Core::ERROR_NONE, handler.Invoke (connection, _T (" getVRRSupport" ), _T (" {\" portId\" : \" 0\" ,\" vrrSupport\" :true}" ), response));
120
+ EXPECT_EQ (response, string (" {\" vrrSupport\" :true,\" success\" :true}" ));
121
+ }
122
+
123
+ TEST_F (AVInputDsTest, setVRRSupport)
124
+ {
125
+ EXPECT_EQ (Core::ERROR_NONE, handler.Invoke (connection, _T (" setVRRSupport" ), _T (" {\" portId\" : \" 0\" ,\" vrrSupport\" :true}" ), response));
126
+ EXPECT_EQ (response, string (" {\" success\" :true}" ));
127
+ }
128
+
129
+ TEST_F (AVInputDsTest, getVRRFrameRate)
130
+ {
131
+ EXPECT_EQ (Core::ERROR_NONE, handler.Invoke (connection, _T (" getVRRFrameRate" ), _T (" {\" portId\" : \" 0\" ,\" currentVRRVideoFrameRate\" :48.6}" ), response));
132
+ EXPECT_EQ (response, string (" {\" currentVRRVideoFrameRate\" :48.6,\" success\" :true}" ));
133
+ }
134
+
0 commit comments