mirror of
https://github.com/openharmony/distributedschedule_dms_fwk_lite.git
synced 2026-07-01 06:41:51 -04:00
fixed fdc0e70 from https://gitee.com/zjucx/distributedschedule_dms_fwk_lite/pulls/79
modify warning Signed-off-by: zjucx <chengxiang4@huawei.com>
This commit is contained in:
@@ -119,7 +119,6 @@ HWTEST_F(FamgrTest, StartRemoteAbility_002, TestSize.Level1) {
|
||||
}
|
||||
StartRemoteAbility(&want, nullptr, nullptr);
|
||||
auto onTlvParseDone = [] (int8_t errCode, const void *dmsMsg) {
|
||||
const TlvNode *tlvHead = reinterpret_cast<const TlvNode *>(dmsMsg);
|
||||
EXPECT_NE(errCode, DMS_TLV_SUCCESS);
|
||||
};
|
||||
RunTest((const uint8_t *)GetPacketBufPtr(), GetPacketSize(), onTlvParseDone, nullptr);
|
||||
|
||||
@@ -39,8 +39,6 @@ const char FOUNDATION_APPID[] = "foundation_signature";
|
||||
const char PREFIX[] = "uid_";
|
||||
const char SUFFIX[] = "_appid";
|
||||
const char LAUNCHER_BUNDLE_NAME[] = "com.test.launcher";
|
||||
const char LAUNCHER_APPID[] = "com.test.launcher_BM70W1/aVSbkx+uI/WT/mO9NqmtEBx9esLAogYAid75/gTMpKWqrNUT5hS9Cj"
|
||||
"Bq6kt1OcxgZzdCJ4HuVyS4dP8w=";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -212,10 +212,6 @@ static uint64_t ConvertIntLittle2Big(const uint8_t *dataIn, uint8_t typeSize)
|
||||
|
||||
static bool MarshallInt(uint64_t field, FieldType fieldType, uint8_t fieldSize)
|
||||
{
|
||||
if (g_buffer == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (g_counter + (TYPE_FILED_LENGTH + MAX_BYTE_NUM + fieldSize) > PACKET_DATA_SIZE) {
|
||||
HILOGE("MarshallInt field is too big to fit");
|
||||
return false;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "bundle_manager.h"
|
||||
#else
|
||||
#include "bundle_inner_interface.h"
|
||||
#include "bundle_manager.h"
|
||||
#endif
|
||||
#include "dmslite_log.h"
|
||||
#include "dmslite_utils.h"
|
||||
|
||||
Reference in New Issue
Block a user