Skip to content

Commit 3b37039

Browse files
committed
AVInput COM-RPC Support: Unit tests: Fixed mocking
1 parent b7b5c0f commit 3b37039

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,17 @@ class AVInputInit : public AVInputDsTest {
360360

361361
TEST_F(AVInputInit, getInputDevices)
362362
{
363+
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): entry");
363364
EXPECT_CALL(*p_hdmiInputImplMock, getNumberOfInputs())
364365
.WillOnce(::testing::Return(1));
366+
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): Mark 1");
365367
EXPECT_CALL(*p_compositeInputImplMock, getNumberOfInputs())
366368
.WillOnce(::testing::Return(1));
369+
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): Mark 2");
367370
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getInputDevices"), _T("{}"), response));
371+
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): response=" + response);
368372
EXPECT_EQ(response, string("{\"devices\":[{\"id\":0,\"connected\":false,\"locator\":\"hdmiin:\\/\\/localhost\\/deviceid\\/0\"},{\"id\":0,\"connected\":false,\"locator\":\"cvbsin:\\/\\/localhost\\/deviceid\\/0\"}],\"success\":true}"));
373+
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): exit");
369374
}
370375

371376
TEST_F(AVInputInit, getInputDevices_HDMI)

0 commit comments

Comments
 (0)