mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 15:20:34 +00:00
IssueNo:#I4SFJ6: modify ut failed test case
Description: modify ut failed test case Sig:SIG_ApplicationFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: mingxihua <mingxihua@huawei.com>
This commit is contained in:
parent
ded061511d
commit
c9f68681a9
@ -125,6 +125,7 @@ void AbilityDumpTest::OnStartAms()
|
||||
EXPECT_TRUE(g_abilityMs->eventLoop_);
|
||||
|
||||
g_abilityMs->handler_ = std::make_shared<AbilityEventHandler>(g_abilityMs->eventLoop_, g_abilityMs);
|
||||
g_abilityMs->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(g_abilityMs->handler_);
|
||||
EXPECT_TRUE(g_abilityMs->connectManager_);
|
||||
|
||||
|
@ -127,6 +127,7 @@ void AbilityManagerServiceTest::OnStartAms()
|
||||
EXPECT_TRUE(abilityMs_->eventLoop_);
|
||||
|
||||
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
|
||||
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(abilityMs_->handler_);
|
||||
EXPECT_TRUE(abilityMs_->connectManager_);
|
||||
|
||||
|
@ -84,6 +84,7 @@ void AbilityStackManagerTest::OnStartabilityMs()
|
||||
EXPECT_TRUE(abilityMs_->eventLoop_);
|
||||
|
||||
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
|
||||
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(abilityMs_->handler_);
|
||||
EXPECT_TRUE(abilityMs_->connectManager_);
|
||||
|
||||
|
@ -94,6 +94,7 @@ void AbilityWithApplicationsTest::OnStartabilityAms()
|
||||
EXPECT_TRUE(abilityMs_->eventLoop_);
|
||||
|
||||
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
|
||||
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(abilityMs_->handler_);
|
||||
EXPECT_TRUE(abilityMs_->connectManager_);
|
||||
|
||||
|
@ -103,6 +103,7 @@ void AbilityMsAppmsTest::OnStartabilityAms()
|
||||
EXPECT_TRUE(abilityMs_->eventLoop_);
|
||||
|
||||
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
|
||||
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(abilityMs_->handler_);
|
||||
EXPECT_TRUE(abilityMs_->connectManager_);
|
||||
|
||||
|
@ -103,6 +103,7 @@ void LifecycleTest::OnStartabilityAms()
|
||||
EXPECT_TRUE(abilityMs_->eventLoop_);
|
||||
|
||||
abilityMs_->handler_ = std::make_shared<AbilityEventHandler>(abilityMs_->eventLoop_, abilityMs_);
|
||||
abilityMs_->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(abilityMs_->handler_);
|
||||
EXPECT_TRUE(abilityMs_->connectManager_);
|
||||
|
||||
|
@ -137,6 +137,7 @@ void TerminateAbilityTest::OnStartAms()
|
||||
EXPECT_TRUE(g_aams->eventLoop_);
|
||||
|
||||
g_aams->handler_ = std::make_shared<AbilityEventHandler>(g_aams->eventLoop_, g_aams);
|
||||
g_aams->connectManager_ = std::make_shared<AbilityConnectManager>();
|
||||
EXPECT_TRUE(g_aams->handler_);
|
||||
EXPECT_TRUE(g_aams->connectManager_);
|
||||
|
||||
|
@ -197,7 +197,7 @@ HWTEST_F(AaCommandScreenTest, Aa_Command_Screen_0700, Function | MediumTest | Le
|
||||
int argc = sizeof(argv) / sizeof(argv[0]) - 1;
|
||||
|
||||
AbilityManagerShellCommand cmd(argc, argv);
|
||||
EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_SCREEN);
|
||||
EXPECT_EQ(cmd.ExecCommand(), "error: unknown option.\n" + HELP_MSG_SCREEN);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user