mirror of
https://gitee.com/openharmony/distributeddatamgr_pasteboard
synced 2024-11-27 01:52:01 +00:00
fix UT failed
Signed-off-by: gao-wen <gaowen17@huawei.com>
This commit is contained in:
parent
b3e249494e
commit
819e37a8ba
@ -168,20 +168,6 @@ HWTEST_F(DMAdapterTest, GetDevices, TestSize.Level0)
|
||||
ASSERT_TRUE(devices.empty());
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: GetLocalDeviceType
|
||||
* @tc.desc: Get Local Device Type
|
||||
* @tc.type: FUNC
|
||||
* @tc.require:
|
||||
* @tc.author:
|
||||
*/
|
||||
HWTEST_F(DMAdapterTest, GetLocalDeviceType, TestSize.Level0)
|
||||
{
|
||||
int32_t type = 14;
|
||||
int32_t ret = DMAdapter::GetInstance().GetLocalDeviceType();
|
||||
ASSERT_EQ(ret, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: GetDeviceName001
|
||||
* @tc.desc: Get Local Device Type
|
||||
@ -193,6 +179,7 @@ HWTEST_F(DMAdapterTest, GetDeviceName001, TestSize.Level0)
|
||||
{
|
||||
std::string networkId = "invalidnetworkId";
|
||||
std::string expectedDeviceName = "unknown";
|
||||
(void)DMAdapter::GetInstance().GetLocalDeviceType();
|
||||
std::string actualDeviceName = DMAdapter::GetInstance().GetDeviceName(networkId);
|
||||
EXPECT_EQ(expectedDeviceName, actualDeviceName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user