Home
last modified time | relevance | path

Searched refs:activeChangeResponseParcel (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/security/access_token/frameworks/privacy/src/
H A Dperm_active_response_parcel.cpp33 auto* activeChangeResponseParcel = new (std::nothrow) ActiveChangeResponseParcel(); in Unmarshalling() local
34 if (activeChangeResponseParcel == nullptr) { in Unmarshalling()
38 …RELEASE_IF_FALSE(in.ReadUint32(activeChangeResponseParcel->changeResponse.tokenID), activeChangeRe… in Unmarshalling()
39 RELEASE_IF_FALSE(in.ReadString(activeChangeResponseParcel->changeResponse.permissionName), in Unmarshalling()
40 activeChangeResponseParcel); in Unmarshalling()
41 …RELEASE_IF_FALSE(in.ReadString(activeChangeResponseParcel->changeResponse.deviceId), activeChangeR… in Unmarshalling()
44 RELEASE_IF_FALSE(in.ReadInt32(type), activeChangeResponseParcel); in Unmarshalling()
45 activeChangeResponseParcel->changeResponse.type = static_cast<ActiveChangeType>(type); in Unmarshalling()
46 return activeChangeResponseParcel; in Unmarshalling()
/ohos5.0/base/security/access_token/frameworks/test/unittest/
H A Dprivacy_parcel_test.cpp159 ActiveChangeResponseParcel activeChangeResponseParcel; variable
161 activeChangeResponseParcel.changeResponse = {
169 EXPECT_EQ(true, activeChangeResponseParcel.Marshalling(parcel));
174 … EXPECT_EQ(activeChangeResponseParcel.changeResponse.tokenID, readedData->changeResponse.tokenID);
175 …EXPECT_EQ(activeChangeResponseParcel.changeResponse.permissionName, readedData->changeResponse.per…
176 …EXPECT_EQ(activeChangeResponseParcel.changeResponse.deviceId, readedData->changeResponse.deviceId);
177 EXPECT_EQ(activeChangeResponseParcel.changeResponse.type, readedData->changeResponse.type);