mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
@@ -161,7 +161,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
|
||||
return false;
|
||||
}
|
||||
|
||||
int priLen = bufferLen - PCID_MAIN_BYTES - 1;
|
||||
uint32_t priLen = bufferLen - PCID_MAIN_BYTES - 1;
|
||||
if (priLen <= 0) {
|
||||
*outputLen = 0;
|
||||
return false;
|
||||
|
||||
@@ -137,7 +137,7 @@ HWTEST_F(SyscapCodecTest, ComparePcidString, TestSize.Level1)
|
||||
const char rpcidString[] = "33588992,1766370052,65536,276824064,0,0,0,0,0,0,"\
|
||||
"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\
|
||||
"SystemCapability.vendor.xxxxx1,SystemCapability.device.xxxxx2";
|
||||
const char expect[][256] = {"SystemCapability.Graphic.UI",
|
||||
const char expect[][256] = {"SystemCapability.Graphic.Graphic2D.Vulkan",
|
||||
"SystemCapability.HiviewDFX.HiDumper",
|
||||
"SystemCapability.vendor.xxxxx1",
|
||||
"SystemCapability.device.xxxxx2"};
|
||||
|
||||
Reference in New Issue
Block a user