!7939 modify p2p ut failed

Merge pull request !7939 from liwenqiang/master
This commit is contained in:
openharmony_ci 2024-10-10 11:42:36 +00:00 committed by Gitee
commit 09c952d953
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ class P2pAdapterTest : public testing::Test {
public:
static void SetUpTestCase()
{
WifiDirectInterfaceMock mock;
EXPECT_CALL(mock, GetP2pEnableStatus).WillOnce(Return(WIFI_SUCCESS));
P2pEntity::Init();
}
static void TearDownTestCase() {}

View File

@ -35,6 +35,8 @@ class P2pEntityTest : public testing::Test {
public:
static void SetUpTestCase()
{
WifiDirectInterfaceMock mock;
EXPECT_CALL(mock, GetP2pEnableStatus).WillOnce(Return(WIFI_SUCCESS));
P2pEntity::Init();
}
static void TearDownTestCase() {}