Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2023-05-17 20:42:02 +08:00
parent 60bdfab409
commit b2ca4761d4
@@ -17,6 +17,7 @@
#include <memory>
#include "dinput_errcode.h"
#include "dinput_ipc_interface_code.h"
namespace OHOS {
namespace DistributedHardware {
@@ -352,10 +353,10 @@ HWTEST_F(DInputSourceCallBackTest, SendRequest01, testing::ext::TestSize.Level1)
{
sptr<IRemoteObject> callBackStubPtr = new TestDInputSourceCallBackStub();
DistributedInputSourceProxy callBackProxy(callBackStubPtr);
IDistributedSourceInput::MessageCode code = IDistributedSourceInput::MessageCode::INIT;
IDInputSourceInterfaceCode code = IDInputSourceInterfaceCode::INIT;
MessageParcel data;
MessageParcel reply;
bool ret = callBackProxy.SendRequest(code, data, reply);
bool ret = callBackProxy.SendRequest(static_cast<uint32_t>(code), data, reply);
EXPECT_EQ(false, ret);
}