@@ -291,19 +291,26 @@ TEST_F(AVInputDsTest, currentVideoMode)
291
291
292
292
TEST_F (AVInputDsTest, getEdid2AllmSupport)
293
293
{
294
+ TEST_LOG (" *** _DEBUG: TEST_F(AVInputDsTest, getEdid2AllmSupport)" );
294
295
EXPECT_CALL (*p_hdmiInputImplMock, getEdid2AllmSupport (::testing::_, ::testing::_))
295
296
.WillOnce ([](int iport, bool *allmSupport) {
296
297
*allmSupport = true ;
297
298
});
298
299
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));
300
301
EXPECT_EQ (response, string (" {\" allmSupport\" :true,\" success\" :true}" ));
301
302
}
302
303
303
304
TEST_F (AVInputDsTest, getEdid2AllmSupport_ErrorCase)
304
305
{
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}" ));
307
314
}
308
315
309
316
TEST_F (AVInputDsTest, setEdid2AllmSupport)
0 commit comments