Skip to content

Commit 8986170

Browse files
committed
Added L1Tests
1 parent 9e8d13a commit 8986170

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ TEST_F(AVInputTest, RegisteredMethods)
7272
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("contentProtected")));
7373
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("setEdid2AllmSupport")));
7474
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")));
7578
}
7679

7780
TEST_F(AVInputTest, contentProtected)
@@ -111,3 +114,21 @@ TEST_F(AVInputDsTest, setEdid2AllmSupport)
111114
EXPECT_EQ(response, string("{\"success\":true}"));
112115
}
113116

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

Comments
 (0)