VirtualBox

Changeset 74263 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Sep 14, 2018 12:53:18 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: Reimplement RTCRestArrayBase::fromString and adjusted response header handling of arrays to deal with multiple headers for the same field (just in case). bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTCRest-1.cpp

    r74250 r74263  
    22282228        RTTESTI_CHECK(Resp1.m_pInteger && Resp1.m_pInteger->m_iValue == 398679406);
    22292229
    2230         //RTTESTI_CHECK_RC(Resp1.pushHeader("x-array", "zero,one,two,three"), VINF_SUCCESS);
    2231         //RTTESTI_CHECK(Resp1.m_pArray && Resp1.m_pArray->size() == 4);
     2230        RTTESTI_CHECK_RC(Resp1.pushHeader("x-array", "zero,one,two,three"), VINF_SUCCESS);
     2231        RTTESTI_CHECK(Resp1.m_pArray && Resp1.m_pArray->size() == 4);
    22322232
    22332233        RTTESTI_CHECK_RC(Resp1.pushHeader("x-map-", "empty-key"), VINF_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette