mirror of
https://github.com/openharmony/bundlemanager_app_domain_verify.git
synced 2026-07-01 02:47:59 -04:00
在AppVerifyBaseInfo结构中添加isPreinstalled字段
Signed-off-by: zhangrn98 <zhangrunan3@huawei.com>
This commit is contained in:
@@ -23,6 +23,9 @@ bool g_mockWriteInt32 = true;
|
||||
bool g_mockReadUint32 = true;
|
||||
bool g_mockReadInt32 = true;
|
||||
|
||||
bool g_mockWriteBool = true;
|
||||
bool g_mockReadBool = true;
|
||||
|
||||
bool g_mockWriteString = true;
|
||||
bool g_mockWriteParcelable = true;
|
||||
bool g_mockReadParcelable = true;
|
||||
@@ -38,6 +41,11 @@ void MockWriteUint32(bool state)
|
||||
g_mockWriteUint32 = state;
|
||||
}
|
||||
|
||||
void MockWriteBool(bool state)
|
||||
{
|
||||
g_mockWriteBool = state;
|
||||
}
|
||||
|
||||
void MockWriteInt32(bool state)
|
||||
{
|
||||
g_mockWriteInt32 = state;
|
||||
@@ -48,6 +56,11 @@ void MockReadUint32(int state)
|
||||
g_mockReadUint32 = state;
|
||||
}
|
||||
|
||||
void MockReadBool(bool state)
|
||||
{
|
||||
g_mockReadBool = state;
|
||||
}
|
||||
|
||||
void MockReadInt32(bool state)
|
||||
{
|
||||
g_mockReadInt32 = state;
|
||||
@@ -138,5 +151,13 @@ bool Parcel::ReadInt32(int32_t& value)
|
||||
{
|
||||
return g_mockReadInt32;
|
||||
}
|
||||
bool Parcel::WriteBool(bool value)
|
||||
{
|
||||
return g_mockWriteBool;
|
||||
}
|
||||
bool Parcel::ReadBool(bool& value)
|
||||
{
|
||||
return g_mockReadBool;
|
||||
}
|
||||
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -21,8 +21,10 @@
|
||||
namespace OHOS {
|
||||
void MockWriteUint32(bool state);
|
||||
void MockWriteInt32(bool state);
|
||||
void MockWriteBool(bool state);
|
||||
void MockReadUint32(int state);
|
||||
void MockReadInt32(bool state);
|
||||
void MockReadBool(bool state);
|
||||
|
||||
void MockWriteString(bool state, uint8_t count);
|
||||
|
||||
@@ -52,6 +54,10 @@ public:
|
||||
|
||||
bool ReadInt32(int32_t& value);
|
||||
|
||||
bool WriteBool(bool value);
|
||||
|
||||
bool ReadBool(bool& value);
|
||||
|
||||
bool WriteString(const std::string&) const;
|
||||
|
||||
bool ReadString(const std::string&);
|
||||
|
||||
Reference in New Issue
Block a user