Signed-off-by: zhangcui <zhangcui11@huawei.com>
This commit is contained in:
zhangcui 2022-10-19 07:21:08 +00:00 committed by Gitee
parent ea249ea65e
commit a0f9efaf5a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ int main()
printf("demo start\n");
HiperfClient::RecordOption opt;
const int timeout = 30;
opt.SetAppPackage("init");
opt.SetAppPackage("com.ohos.launcher");
opt.SetTimeStopSec(timeout);
if (myHiperf.Start(opt)) {
printf("demo start successfully\n");

View File

@ -339,7 +339,7 @@ HWTEST_F(HiperfClientTest, SetDataLimit, TestSize.Level1)
HWTEST_F(HiperfClientTest, SetAppPackage, TestSize.Level1)
{
HiperfClient::RecordOption opt;
opt.SetAppPackage("init");
opt.SetAppPackage("com.ohos.launcher");
TestCaseOption(opt);
}

View File

@ -75,7 +75,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
std::string cmdString = "record ";
if (fixPid) {
cmdString += "--app init ";
cmdString += "--app com.ohos.launcher ";
}
cmdString += " " + option;
printf("command : %s\n", cmdString.c_str());
@ -96,7 +96,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
// app package name
HWTEST_F(SubCommandRecordTest, PackageName, TestSize.Level1)
{
TestRecordCommand("-d 2 --app init ", true, false);
TestRecordCommand("-d 2 --app com.ohos.launcher ", true, false);
}
HWTEST_F(SubCommandRecordTest, PackageNameErr, TestSize.Level1)