Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bb25440 authored by Aaron Tsai's avatar Aaron Tsai Committed by Automerger Merge Worker
Browse files

Sending SMS via 1.6 APIs in VTS 1.6 am: 121ff3c5 am: f8bb1e24 am: f6999d4b

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15827214

Change-Id: I1c612f922733f7c3475e8f20534e6d103ae143b5
parents f70c11b2 f6999d4b
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -275,7 +275,7 @@ TEST_P(RadioHidlTest_v1_6, sendSms_1_6) {
    msg.smscPdu = "";
    msg.smscPdu = "";
    msg.pdu = "01000b916105770203f3000006d4f29c3e9b01";
    msg.pdu = "01000b916105770203f3000006d4f29c3e9b01";


    radio_v1_6->sendSms(serial, msg);
    radio_v1_6->sendSms_1_6(serial, msg);


    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
@@ -303,7 +303,7 @@ TEST_P(RadioHidlTest_v1_6, sendSmsExpectMore_1_6) {
    msg.smscPdu = "";
    msg.smscPdu = "";
    msg.pdu = "01000b916105770203f3000006d4f29c3e9b01";
    msg.pdu = "01000b916105770203f3000006d4f29c3e9b01";


    radio_v1_6->sendSMSExpectMore(serial, msg);
    radio_v1_6->sendSmsExpectMore_1_6(serial, msg);


    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
@@ -351,7 +351,7 @@ TEST_P(RadioHidlTest_v1_6, sendCdmaSms_1_6) {
    cdmaSmsMessage.bearerData =
    cdmaSmsMessage.bearerData =
        (std::vector<uint8_t>){15, 0, 3, 32, 3, 16, 1, 8, 16, 53, 76, 68, 6, 51, 106, 0};
        (std::vector<uint8_t>){15, 0, 3, 32, 3, 16, 1, 8, 16, 53, 76, 68, 6, 51, 106, 0};


    radio_v1_6->sendCdmaSms(serial, cdmaSmsMessage);
    radio_v1_6->sendCdmaSms_1_6(serial, cdmaSmsMessage);


    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
@@ -398,7 +398,7 @@ TEST_P(RadioHidlTest_v1_6, sendCdmaSmsExpectMore_1_6) {
    cdmaSmsMessage.bearerData =
    cdmaSmsMessage.bearerData =
            (std::vector<uint8_t>){15, 0, 3, 32, 3, 16, 1, 8, 16, 53, 76, 68, 6, 51, 106, 0};
            (std::vector<uint8_t>){15, 0, 3, 32, 3, 16, 1, 8, 16, 53, 76, 68, 6, 51, 106, 0};


    radio_v1_6->sendCdmaSmsExpectMore(serial, cdmaSmsMessage);
    radio_v1_6->sendCdmaSmsExpectMore_1_6(serial, cdmaSmsMessage);


    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);