Skip to content

Commit d99200f

Browse files
authored
Update test_AVInput.cpp
1 parent a61a597 commit d99200f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ using namespace WPEFramework;
2828

2929
using ::testing::NiceMock;
3030

31-
//Test
3231
class AVInputTest : public ::testing::Test {
3332
protected:
3433
Core::ProxyType<Plugin::AVInput> plugin;
@@ -73,6 +72,9 @@ TEST_F(AVInputTest, RegisteredMethods)
7372
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("contentProtected")));
7473
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("setEdid2AllmSupport")));
7574
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")));
7678
}
7779

7880
TEST_F(AVInputTest, contentProtected)
@@ -112,3 +114,20 @@ TEST_F(AVInputDsTest, setEdid2AllmSupport)
112114
EXPECT_EQ(response, string("{\"success\":true}"));
113115
}
114116

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"\":true,\"success\":true}"));
133+
}

0 commit comments

Comments
 (0)