Skip to content

Commit 6202e1d

Browse files
committed
AVInput COM-RPC Support: WIP
1 parent e8e6fce commit 6202e1d

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

Tests/L1Tests/tests/test_AVInput.cpp

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class AVInputTest : public ::testing::Test {
6868
, INIT_CONX(1, 0) , workerPool(Core::ProxyType<WorkerPoolImplementation>::Create(
6969
2, Core::Thread::DefaultStackSize(), 16))
7070
{
71-
TEST_LOG("*** _DEBUG: AVInputTest Constructor: Mark 1");
71+
TEST_LOG("*** _DEBUG: AVInputTest ctor");
7272
p_serviceMock = new NiceMock <ServiceMock>;
7373

7474
p_avInputMock = new NiceMock <AVInputMock>;
@@ -136,7 +136,7 @@ class AVInputTest : public ::testing::Test {
136136

137137
virtual ~AVInputTest()
138138
{
139-
TEST_LOG("*** _DEBUG: AVInputTest Destructor");
139+
TEST_LOG("*** _DEBUG: AVInputTest xtor");
140140
plugin->Deinitialize(&service);
141141

142142
Core::IWorkerPool::Assign(nullptr);
@@ -169,6 +169,9 @@ class AVInputTest : public ::testing::Test {
169169
}
170170
};
171171

172+
// <pca> debug
173+
#if 0
174+
// </pca>
172175
TEST_F(AVInputTest, RegisteredMethods)
173176
{
174177
TEST_LOG("*** _DEBUG: TEST_F(AVInputTest, RegisteredMethods): entry");
@@ -204,6 +207,9 @@ TEST_F(AVInputTest, contentProtected)
204207
EXPECT_EQ(response, string("{\"isContentProtected\":true,\"success\":true}"));
205208
TEST_LOG("*** _DEBUG: TEST_F(AVInputTest, contentProtected): Mark 2");
206209
}
210+
// <pca>
211+
#endif
212+
// </pca>
207213

208214
class AVInputDsTest : public AVInputTest {
209215
protected:
@@ -254,6 +260,9 @@ class AVInputDsTest : public AVInputTest {
254260
}
255261
};
256262

263+
// <pca> debug
264+
#if 0
265+
// </pca>
257266
TEST_F(AVInputDsTest, numberOfInputs)
258267
{
259268
ON_CALL(*p_hdmiInputImplMock, getNumberOfInputs())
@@ -311,6 +320,9 @@ TEST_F(AVInputDsTest, getVRRFrameRate)
311320
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getVRRFrameRate"), _T("{\"portId\": \"0\"}"), response));
312321
EXPECT_EQ(response, string("{\"currentVRRVideoFrameRate\":0,\"success\":true}"));
313322
}
323+
// <pca>
324+
#endif
325+
// </pca>
314326

315327
class AVInputInit : public AVInputDsTest {
316328
protected:
@@ -390,6 +402,9 @@ class AVInputInit : public AVInputDsTest {
390402
}
391403
};
392404

405+
// <pca> debug
406+
#if 0
407+
// </pca>
393408
TEST_F(AVInputInit, getInputDevices)
394409
{
395410
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): entry");
@@ -685,8 +700,12 @@ TEST_F(AVInputInit, getGameFeatureStatus_VRR_FREESYNC_PREMIUM_PRO)
685700
EXPECT_EQ(response, string("{\"mode\":true,\"success\":true}"));
686701
}
687702

703+
// <pca>
704+
#endif
705+
// </pca>
688706
TEST_F(AVInputInit, onDevicesChangedHDMI)
689707
{
708+
printf("*** _DEBUG: onDevicesChangedHDMI: entry");
690709
Core::Event onDevicesChanged(false, true);
691710

692711
EXPECT_CALL(service, Submit(::testing::_, ::testing::_))
@@ -702,19 +721,28 @@ TEST_F(AVInputInit, onDevicesChangedHDMI)
702721
return Core::ERROR_NONE;
703722
}));
704723

724+
printf("*** _DEBUG: onDevicesChangedHDMI: Mark 1");
705725
EVENT_SUBSCRIBE(0, _T("onDevicesChanged"), _T("org.rdk.AVInput"), message);
726+
printf("*** _DEBUG: onDevicesChangedHDMI: Mark 2");
706727

707728
ASSERT_TRUE(dsAVEventHandler != nullptr);
729+
printf("*** _DEBUG: onDevicesChangedHDMI: Mark 3");
708730
IARM_Bus_DSMgr_EventData_t eventData;
709731
eventData.data.hdmi_in_connect.port = dsHDMI_IN_PORT_0;
710732
eventData.data.hdmi_in_connect.isPortConnected = true;
711733
dsAVEventHandler(IARM_BUS_DSMGR_NAME, IARM_BUS_DSMGR_EVENT_HDMI_IN_HOTPLUG, &eventData, 0);
734+
printf("*** _DEBUG: onDevicesChangedHDMI: Mark 4");
712735

713736
EXPECT_EQ(Core::ERROR_NONE, onDevicesChanged.Lock());
737+
printf("*** _DEBUG: onDevicesChangedHDMI: Mark 5");
714738

715739
EVENT_UNSUBSCRIBE(0, _T("onDevicesChanged"), _T("org.rdk.AVInput"), message);
740+
printf("*** _DEBUG: onDevicesChangedHDMI: exit");
716741
}
717742

743+
// <pca> debug
744+
#if 0
745+
// </pca>
718746
TEST_F(AVInputInit, onDevicesChangedCOMPOSITE)
719747
{
720748
Core::Event onDevicesChanged(false, true);
@@ -1964,3 +1992,6 @@ TEST_F(AVInputInit, aviContentTypeUpdate_HDMI)
19641992

19651993
EVENT_UNSUBSCRIBE(0, _T("aviContentTypeUpdate"), _T("org.rdk.AVInput"), message);
19661994
}
1995+
// <pca> debug
1996+
#endif
1997+
// </pca>

0 commit comments

Comments
 (0)