提交 de1c2b02 编写于 作者: B bai-guodong

Description: modify update XTS testcase for L1

Change-Id: I8f4817803af55907545d6741aa4221b9ad9f9020
上级 02c2d852
...@@ -74,6 +74,7 @@ lite_component("acts_component") { ...@@ -74,6 +74,7 @@ lite_component("acts_component") {
"//test/xts/acts/ai_lite/ai_engine_posix/base:ActsAiEngineTest", "//test/xts/acts/ai_lite/ai_engine_posix/base:ActsAiEngineTest",
"//test/xts/acts/global_lite:ActsGlobalTest", "//test/xts/acts/global_lite:ActsGlobalTest",
"//test/xts/acts/sensors_lite:sensorstest", "//test/xts/acts/sensors_lite:sensorstest",
"//test/xts/acts/update_lite/updater_posix:ActsUpdateTest",
] ]
} else if (ohos_kernel_type == "linux") { } else if (ohos_kernel_type == "linux") {
all_features += [ all_features += [
......
/* /*
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2021 Huawei Device Co., Ltd.
*/
/*
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -18,15 +20,13 @@ ...@@ -18,15 +20,13 @@
#include "hota_updater.h" #include "hota_updater.h"
#include "ohos_types.h" #include "ohos_types.h"
#define ERRORCALLBACK 0 const int USE_HOS_PKG = 1;
#define STATUSCALLBACK 0 const int NOT_HOS_PKG = 0;
#define USE_HOS_PKG 1 const int ERR_PAK_FALG = 2;
#define NOT_HOS_PKG 0 const int DATA_LENGTH = 190;
#define ERR_PAK_FALG 2 const int READ_LENGTH = 0;
#define DATA_LENGTH 190 const int ERR_LENGTH = 9;
#define READ_LENGTH 0 const int DATA_OFFSET = 0;
#define ERR_LENGTH 9
#define DATA_OFFSET 0
using namespace std; using namespace std;
using namespace testing::ext; using namespace testing::ext;
...@@ -47,7 +47,7 @@ protected: ...@@ -47,7 +47,7 @@ protected:
HWTEST_F(UpdateTest, subUpgradeAPI0100, Function | MediumTest | Level1) HWTEST_F(UpdateTest, subUpgradeAPI0100, Function | MediumTest | Level1)
{ {
unsigned int ret; unsigned int ret;
ret = HotaInit(ERRORCALLBACK, STATUSCALLBACK); ret = HotaInit(NULL, NULL);
printf("HotaInit return = %d\r\n", ret); printf("HotaInit return = %d\r\n", ret);
EXPECT_EQ(OHOS_SUCCESS, ret); EXPECT_EQ(OHOS_SUCCESS, ret);
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册