@@ -68,7 +68,7 @@ class AVInputTest : public ::testing::Test {
68
68
, INIT_CONX(1 , 0 ) , workerPool(Core::ProxyType<WorkerPoolImplementation>::Create(
69
69
2 , Core::Thread::DefaultStackSize(), 16 ))
70
70
{
71
- TEST_LOG (" *** _DEBUG: AVInputTest Constructor: Mark 1 " );
71
+ TEST_LOG (" *** _DEBUG: AVInputTest ctor " );
72
72
p_serviceMock = new NiceMock <ServiceMock>;
73
73
74
74
p_avInputMock = new NiceMock <AVInputMock>;
@@ -136,7 +136,7 @@ class AVInputTest : public ::testing::Test {
136
136
137
137
virtual ~AVInputTest ()
138
138
{
139
- TEST_LOG (" *** _DEBUG: AVInputTest Destructor " );
139
+ TEST_LOG (" *** _DEBUG: AVInputTest xtor " );
140
140
plugin->Deinitialize (&service);
141
141
142
142
Core::IWorkerPool::Assign (nullptr );
@@ -169,6 +169,9 @@ class AVInputTest : public ::testing::Test {
169
169
}
170
170
};
171
171
172
+ // <pca> debug
173
+ #if 0
174
+ // </pca>
172
175
TEST_F(AVInputTest, RegisteredMethods)
173
176
{
174
177
TEST_LOG("*** _DEBUG: TEST_F(AVInputTest, RegisteredMethods): entry");
@@ -204,6 +207,9 @@ TEST_F(AVInputTest, contentProtected)
204
207
EXPECT_EQ(response, string("{\"isContentProtected\":true,\"success\":true}"));
205
208
TEST_LOG("*** _DEBUG: TEST_F(AVInputTest, contentProtected): Mark 2");
206
209
}
210
+ // <pca>
211
+ #endif
212
+ // </pca>
207
213
208
214
class AVInputDsTest : public AVInputTest {
209
215
protected:
@@ -254,6 +260,9 @@ class AVInputDsTest : public AVInputTest {
254
260
}
255
261
};
256
262
263
+ // <pca> debug
264
+ #if 0
265
+ // </pca>
257
266
TEST_F(AVInputDsTest, numberOfInputs)
258
267
{
259
268
ON_CALL(*p_hdmiInputImplMock, getNumberOfInputs())
@@ -311,6 +320,9 @@ TEST_F(AVInputDsTest, getVRRFrameRate)
311
320
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getVRRFrameRate"), _T("{\"portId\": \"0\"}"), response));
312
321
EXPECT_EQ(response, string("{\"currentVRRVideoFrameRate\":0,\"success\":true}"));
313
322
}
323
+ // <pca>
324
+ #endif
325
+ // </pca>
314
326
315
327
class AVInputInit : public AVInputDsTest {
316
328
protected:
@@ -390,6 +402,9 @@ class AVInputInit : public AVInputDsTest {
390
402
}
391
403
};
392
404
405
+ // <pca> debug
406
+ #if 0
407
+ // </pca>
393
408
TEST_F(AVInputInit, getInputDevices)
394
409
{
395
410
TEST_LOG("*** _DEBUG: TEST_F(AVInputInit, getInputDevices): entry");
@@ -685,8 +700,12 @@ TEST_F(AVInputInit, getGameFeatureStatus_VRR_FREESYNC_PREMIUM_PRO)
685
700
EXPECT_EQ(response, string("{\"mode\":true,\"success\":true}"));
686
701
}
687
702
703
+ // <pca>
704
+ #endif
705
+ // </pca>
688
706
TEST_F (AVInputInit, onDevicesChangedHDMI)
689
707
{
708
+ printf (" *** _DEBUG: onDevicesChangedHDMI: entry" );
690
709
Core::Event onDevicesChanged (false , true );
691
710
692
711
EXPECT_CALL (service, Submit (::testing::_, ::testing::_))
@@ -702,19 +721,28 @@ TEST_F(AVInputInit, onDevicesChangedHDMI)
702
721
return Core::ERROR_NONE;
703
722
}));
704
723
724
+ printf (" *** _DEBUG: onDevicesChangedHDMI: Mark 1" );
705
725
EVENT_SUBSCRIBE (0 , _T (" onDevicesChanged" ), _T (" org.rdk.AVInput" ), message);
726
+ printf (" *** _DEBUG: onDevicesChangedHDMI: Mark 2" );
706
727
707
728
ASSERT_TRUE (dsAVEventHandler != nullptr );
729
+ printf (" *** _DEBUG: onDevicesChangedHDMI: Mark 3" );
708
730
IARM_Bus_DSMgr_EventData_t eventData;
709
731
eventData.data .hdmi_in_connect .port = dsHDMI_IN_PORT_0;
710
732
eventData.data .hdmi_in_connect .isPortConnected = true ;
711
733
dsAVEventHandler (IARM_BUS_DSMGR_NAME, IARM_BUS_DSMGR_EVENT_HDMI_IN_HOTPLUG, &eventData, 0 );
734
+ printf (" *** _DEBUG: onDevicesChangedHDMI: Mark 4" );
712
735
713
736
EXPECT_EQ (Core::ERROR_NONE, onDevicesChanged.Lock ());
737
+ printf (" *** _DEBUG: onDevicesChangedHDMI: Mark 5" );
714
738
715
739
EVENT_UNSUBSCRIBE (0 , _T (" onDevicesChanged" ), _T (" org.rdk.AVInput" ), message);
740
+ printf (" *** _DEBUG: onDevicesChangedHDMI: exit" );
716
741
}
717
742
743
+ // <pca> debug
744
+ #if 0
745
+ // </pca>
718
746
TEST_F(AVInputInit, onDevicesChangedCOMPOSITE)
719
747
{
720
748
Core::Event onDevicesChanged(false, true);
@@ -1964,3 +1992,6 @@ TEST_F(AVInputInit, aviContentTypeUpdate_HDMI)
1964
1992
1965
1993
EVENT_UNSUBSCRIBE(0, _T("aviContentTypeUpdate"), _T("org.rdk.AVInput"), message);
1966
1994
}
1995
+ // <pca> debug
1996
+ #endif
1997
+ // </pca>
0 commit comments