mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-24 01:09:51 +00:00
!7939 modify p2p ut failed
Merge pull request !7939 from liwenqiang/master
This commit is contained in:
commit
09c952d953
@ -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() {}
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user