Skip to content

Commit dd59107

Browse files
committed
AVInput COM-RPC Support: WIP
1 parent 55d5a99 commit dd59107

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,26 @@ TEST_F(AVInputDsTest, currentVideoMode)
291291

292292
TEST_F(AVInputDsTest, getEdid2AllmSupport)
293293
{
294+
TEST_LOG("*** _DEBUG: TEST_F(AVInputDsTest, getEdid2AllmSupport)");
294295
EXPECT_CALL(*p_hdmiInputImplMock, getEdid2AllmSupport(::testing::_, ::testing::_))
295296
.WillOnce([](int iport, bool *allmSupport) {
296297
*allmSupport = true;
297298
});
298299

299-
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getEdid2AllmSupport"), _T("{\"portId\": \"0\",\"allmSupport\":true}"), response));
300+
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getEdid2AllmSupport"), _T("{\"portId\": \"0\"}"), response));
300301
EXPECT_EQ(response, string("{\"allmSupport\":true,\"success\":true}"));
301302
}
302303

303304
TEST_F(AVInputDsTest, getEdid2AllmSupport_ErrorCase)
304305
{
305-
EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getEdid2AllmSupport"), _T("{\"portId\": \"test\",\"allmSupport\":true}"), response));
306-
EXPECT_EQ(response, string(""));
306+
TEST_LOG("*** _DEBUG: TEST_F(AVInputDsTest, getEdid2AllmSupport_ErrorCase)");
307+
EXPECT_CALL(*p_hdmiInputImplMock, getEdid2AllmSupport(::testing::_, ::testing::_))
308+
.WillOnce([](int iport, bool *allmSupport) {
309+
throw std::runtime_error("Mocked exception");
310+
});
311+
312+
EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getEdid2AllmSupport"), _T("{\"portId\": \"test\"}"), response));
313+
EXPECT_EQ(response, string("{\"success\":false}"));
307314
}
308315

309316
TEST_F(AVInputDsTest, setEdid2AllmSupport)

0 commit comments

Comments
 (0)