Fix setupDataCall tests for osAppid

Test: atest VtsHalRadioTargetTest
Bug: 265830733
Change-Id: I1b342bb7a829585607db4518bf4017e28b6db84f
This commit is contained in:
Sarah Chin 2023-01-18 18:28:03 -08:00
parent c20cbaeb7e
commit d9ab9aa59f

View file

@ -143,9 +143,20 @@ TEST_P(RadioDataTest, setupDataCall_osAppId) {
TrafficDescriptor trafficDescriptor;
OsAppId osAppId;
std::string osAppIdString("osAppId");
std::vector<unsigned char> osAppIdVec(osAppIdString.begin(), osAppIdString.end());
osAppId.osAppId = osAppIdVec;
osAppId.osAppId = {static_cast<unsigned char>(-105), static_cast<unsigned char>(-92),
static_cast<unsigned char>(-104), static_cast<unsigned char>(-29),
static_cast<unsigned char>(-4), static_cast<unsigned char>(-110),
static_cast<unsigned char>(92), static_cast<unsigned char>(-108),
static_cast<unsigned char>(-119), static_cast<unsigned char>(-122),
static_cast<unsigned char>(3), static_cast<unsigned char>(51),
static_cast<unsigned char>(-48), static_cast<unsigned char>(110),
static_cast<unsigned char>(78), static_cast<unsigned char>(71),
static_cast<unsigned char>(10), static_cast<unsigned char>(69),
static_cast<unsigned char>(78), static_cast<unsigned char>(84),
static_cast<unsigned char>(69), static_cast<unsigned char>(82),
static_cast<unsigned char>(80), static_cast<unsigned char>(82),
static_cast<unsigned char>(73), static_cast<unsigned char>(83),
static_cast<unsigned char>(69)};
trafficDescriptor.osAppId = osAppId;
DataProfileInfo dataProfileInfo;