@@ -491,12 +491,6 @@ TEST_F(AVInputInit, writeEDID)
491
491
EXPECT_EQ (response, string (" {\" success\" :true}" ));
492
492
}
493
493
494
- TEST_F (AVInputInit, writeEDID_InvalidParameters)
495
- {
496
- EXPECT_EQ (Core::ERROR_GENERAL, handler.Invoke (connection, _T (" writeEDID" ), _T (" {}" ), response));
497
- EXPECT_EQ (response, string (" " ));
498
- }
499
-
500
494
TEST_F (AVInputInit, readEDID)
501
495
{
502
496
EXPECT_CALL (*p_hdmiInputImplMock, getEDIDBytesInfo (::testing::_, ::testing::_))
@@ -509,27 +503,6 @@ TEST_F(AVInputInit, readEDID)
509
503
EXPECT_EQ (response, string (" {\" EDID\" :\" AP\\ /\\ /\\ /\\ /\\ /\\ /\\ /w==\" ,\" success\" :true}" ));
510
504
}
511
505
512
- TEST_F (AVInputInit, readEDIDFailure)
513
- {
514
- EXPECT_CALL (*p_hdmiInputImplMock, getEDIDBytesInfo (::testing::_, ::testing::_))
515
- .WillOnce ([](int port, std::vector<uint8_t >& edid) {
516
- edid = {};
517
- });
518
-
519
- EXPECT_EQ (Core::ERROR_GENERAL, handler.Invoke (connection, _T (" readEDID" ), _T (" {\" portId\" : \" 1\" }" ), response));
520
- EXPECT_EQ (response, string (" " ));
521
- }
522
-
523
- TEST_F (AVInputInit, readEDID_InvalidParameters)
524
- {
525
- EXPECT_EQ (Core::ERROR_GENERAL, handler.Invoke (connection, _T (" readEDID" ), _T (" {\" portId\" : \" test\" }" ), response));
526
- EXPECT_EQ (response, string (" " ));
527
- }
528
-
529
- // <pca> debug
530
- #if 0
531
- // </pca>
532
-
533
506
TEST_F (AVInputInit, getRawSPD)
534
507
{
535
508
EXPECT_CALL (*p_hdmiInputImplMock, getHDMISPDInfo (::testing::_, ::testing::_))
@@ -541,12 +514,6 @@ TEST_F(AVInputInit, getRawSPD)
541
514
EXPECT_EQ (response, string (" {\" HDMISPD\" :\" U1BEAA\" ,\" success\" :true}" ));
542
515
}
543
516
544
- TEST_F(AVInputInit, getRawSPD_InvalidParameters)
545
- {
546
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getRawSPD"), _T("{\"portId\": \"test\"}"), response));
547
- EXPECT_EQ(response, string(""));
548
- }
549
-
550
517
TEST_F (AVInputInit, getSPD)
551
518
{
552
519
EXPECT_CALL (*p_hdmiInputImplMock, getHDMISPDInfo (::testing::_, ::testing::_))
@@ -558,12 +525,6 @@ TEST_F(AVInputInit, getSPD)
558
525
EXPECT_EQ (response, string (" {\" HDMISPD\" :\" Packet Type:53,Version:80,Length:68,vendor name:wn,product des:,source info:00\" ,\" success\" :true}" ));
559
526
}
560
527
561
- TEST_F(AVInputInit, getSPD_InvalidParameters)
562
- {
563
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getSPD"), _T("{\"portId\": \"test\"}"), response));
564
- EXPECT_EQ(response, string(""));
565
- }
566
-
567
528
TEST_F (AVInputInit, setEdidVersion)
568
529
{
569
530
EXPECT_CALL (*p_hdmiInputImplMock, setEdidVersion (::testing::_, ::testing::_))
@@ -576,12 +537,6 @@ TEST_F(AVInputInit, setEdidVersion)
576
537
EXPECT_EQ (response, string (" {\" success\" :true}" ));
577
538
}
578
539
579
- TEST_F(AVInputInit, setEdidVersion_InvalidParameters)
580
- {
581
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("setEdidVersion"), _T("{\"portId\": \"test\", \"edidVersion\":\"test\"}"), response));
582
- EXPECT_EQ(response, string(""));
583
- }
584
-
585
540
TEST_F (AVInputInit, getEdidVersion1)
586
541
{
587
542
EXPECT_CALL (*p_hdmiInputImplMock, getEdidVersion (::testing::_, ::testing::_))
@@ -606,12 +561,6 @@ TEST_F(AVInputInit, getEdidVersion2)
606
561
EXPECT_EQ (response, string (" {\" edidVersion\" :\" HDMI2.0\" ,\" success\" :true}" ));
607
562
}
608
563
609
- TEST_F(AVInputInit, getEdidVersion_InvalidParameters)
610
- {
611
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getEdidVersion"), _T("{\"portId\": \"test\"}}"), response));
612
- EXPECT_EQ(response, string(""));
613
- }
614
-
615
564
TEST_F (AVInputInit, getHdmiVersion)
616
565
{
617
566
EXPECT_CALL (*p_hdmiInputImplMock, getHdmiVersion (::testing::_, ::testing::_))
@@ -625,12 +574,6 @@ TEST_F(AVInputInit, getHdmiVersion)
625
574
EXPECT_EQ (response, string (" {\" HdmiCapabilityVersion\" :\" 2.1\" ,\" success\" :true}" ));
626
575
}
627
576
628
- TEST_F(AVInputInit, getHdmiVersion_InvalidParameters)
629
- {
630
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getHdmiVersion"), _T("{\"portId\": \"test\"}"), response));
631
- EXPECT_EQ(response, string(""));
632
- }
633
-
634
577
TEST_F (AVInputInit, setMixerLevels)
635
578
{
636
579
EXPECT_CALL (*p_HostImplMock, setAudioMixerLevels (dsAUDIO_INPUT_PRIMARY, ::testing::_))
@@ -649,12 +592,6 @@ TEST_F(AVInputInit, setMixerLevels)
649
592
EXPECT_EQ (response, string (" {\" success\" :true}" ));
650
593
}
651
594
652
- TEST_F(AVInputInit, setMixerLevelsErrorCase)
653
- {
654
- EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("setMixerLevels"), _T("{\"primaryVolume\": 110 ,\"inputVolume\":110}"), response));
655
- EXPECT_EQ(response, string("{\"success\":true}"));
656
- }
657
-
658
595
TEST_F (AVInputInit, startInput_HDMI)
659
596
{
660
597
EXPECT_CALL (*p_hdmiInputImplMock, selectPort (::testing::_, ::testing::_, ::testing::_, ::testing::_))
@@ -680,12 +617,6 @@ TEST_F(AVInputInit, startInput_COMPOSITE)
680
617
EXPECT_EQ (response, string (" {\" success\" :true}" ));
681
618
}
682
619
683
- TEST_F(AVInputInit, startInput_InvalidParameters)
684
- {
685
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("startInput"), _T("{\"portId\": \"test\" ,\"typeOfInput\":\"HDMI\", \"requestAudioMix\": true, \"plane\" : 1, \"topMost\" : true}"), response));
686
- EXPECT_EQ(response, string(""));
687
- }
688
-
689
620
TEST_F (AVInputInit, stopInput_HDMI)
690
621
{
691
622
EXPECT_CALL (*p_hdmiInputImplMock, selectPort (::testing::_, ::testing::_, ::testing::_, ::testing::_))
@@ -708,12 +639,6 @@ TEST_F(AVInputInit, stopInput_COMPOSITE)
708
639
EXPECT_EQ (response, string (" {\" success\" :true}" ));
709
640
}
710
641
711
- TEST_F(AVInputInit, stopInput_COMPOSITE_InvalidParameters)
712
- {
713
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("stopInput"), _T("{\"typeOfInput\":\"DP\"}"), response));
714
- EXPECT_EQ(response, string(""));
715
- }
716
-
717
642
TEST_F (AVInputInit, setVideoRectangle_HDMI)
718
643
{
719
644
EXPECT_CALL (*p_hdmiInputImplMock, scaleVideo (::testing::_, ::testing::_, ::testing::_, ::testing::_))
@@ -742,12 +667,6 @@ TEST_F(AVInputInit, setVideoRectangle_COMPOSITE)
742
667
EXPECT_EQ (response, string (" {\" success\" :true}" ));
743
668
}
744
669
745
- TEST_F(AVInputInit, setVideoRectangle_InvalidParameters)
746
- {
747
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("setVideoRectangle"), _T("{\"x\" : 0, \"y\" : 0, \"w\" : 720, \"h\" : 480 ,\"typeOfInput\":\"DP\"}"), response));
748
- EXPECT_EQ(response, string(""));
749
- }
750
-
751
670
TEST_F (AVInputInit, getSupportedGameFeatures)
752
671
{
753
672
EXPECT_CALL (*p_hdmiInputImplMock, getSupportedGameFeatures (::testing::_))
@@ -759,17 +678,6 @@ TEST_F(AVInputInit, getSupportedGameFeatures)
759
678
EXPECT_EQ (response, string (" {\" supportedGameFeatures\" :[\" ALLM\" ,\" VRR\" ,\" QMS\" ],\" success\" :true}" ));
760
679
}
761
680
762
- TEST_F(AVInputInit, getSupportedGameFeatures_ErrorCase)
763
- {
764
- EXPECT_CALL(*p_hdmiInputImplMock, getSupportedGameFeatures(::testing::_))
765
- .WillOnce([](std::vector<std::string>& featureList) {
766
- featureList = {};
767
- });
768
-
769
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getSupportedGameFeatures"), _T("{}"), response));
770
- EXPECT_EQ(response, string(""));
771
- }
772
-
773
681
TEST_F (AVInputInit, getGameFeatureStatus_ALLM)
774
682
{
775
683
EXPECT_CALL (*p_hdmiInputImplMock, getHdmiALLMStatus (::testing::_, ::testing::_))
@@ -834,11 +742,10 @@ TEST_F(AVInputInit, getGameFeatureStatus_VRR_FREESYNC_PREMIUM_PRO)
834
742
EXPECT_EQ (response, string (" {\" mode\" :true,\" success\" :true}" ));
835
743
}
836
744
837
- TEST_F(AVInputInit, getGameFeatureStatus_InvalidParameters)
838
- {
839
- EXPECT_EQ(Core::ERROR_GENERAL, handler.Invoke(connection, _T("getGameFeatureStatus"), _T("{\"portId\" : \"test\", \"gameFeature\" : \"VRR-FREESYNC-PREMIUM-PRO\"}"), response));
840
- EXPECT_EQ(response, string(""));
841
- }
745
+
746
+ // <pca> debug
747
+ #if 0
748
+ // </pca>
842
749
843
750
TEST_F(AVInputInit, onDevicesChangedHDMI)
844
751
{
0 commit comments