@@ -28,7 +28,6 @@ using namespace WPEFramework;
28
28
29
29
using ::testing::NiceMock;
30
30
31
- // Test
32
31
class AVInputTest : public ::testing::Test {
33
32
protected:
34
33
Core::ProxyType<Plugin::AVInput> plugin;
@@ -73,6 +72,9 @@ TEST_F(AVInputTest, RegisteredMethods)
73
72
EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" contentProtected" )));
74
73
EXPECT_EQ (Core::ERROR_NONE, handler.Exists (_T (" setEdid2AllmSupport" )));
75
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" )));
76
78
}
77
79
78
80
TEST_F (AVInputTest, contentProtected)
@@ -112,3 +114,20 @@ TEST_F(AVInputDsTest, setEdid2AllmSupport)
112
114
EXPECT_EQ (response, string (" {\" success\" :true}" ));
113
115
}
114
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" \" :true,\" success\" :true}" ));
133
+ }
0 commit comments