mirror of
https://gitee.com/openharmony/ability_idl_tool
synced 2025-02-18 15:01:11 +00:00
tdd修复
Signed-off-by: wujiqin5@huawei.com <wujiqin5@huawei.com> Change-Id: I02287a027f91546cd463afdbff04d931636692f1
This commit is contained in:
parent
bdc40aec39
commit
a1a1eb2ce9
@ -580,7 +580,7 @@ HWTEST_F(TsCodeEmitterStubTest, EmitInterfaceStubMethodImpls_001, TestSize.Level
|
||||
tsCodeGen_->EmitInterfaceStubMethodImpls(stringBuilder, CodeEmitter::TAB);
|
||||
std::string data(stringBuilder.ToString().string());
|
||||
EXPECT_TRUE(data.length());
|
||||
EXPECT_NE(data.find("onRemoteMessageRequest(code: number, data, reply, option)"), std::string::npos);
|
||||
EXPECT_NE(data.find("async onRemoteMessageRequest(code: number, data:rpc.MessageSequence,"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos);
|
||||
@ -616,7 +616,7 @@ HWTEST_F(TsCodeEmitterStubTest, EmitInterfaceStubMethodImpls_002, TestSize.Level
|
||||
tsCodeGen_->EmitInterfaceStubMethodImpls(stringBuilder, CodeEmitter::TAB);
|
||||
std::string data(stringBuilder.ToString().string());
|
||||
EXPECT_TRUE(data.length());
|
||||
EXPECT_NE(data.find("onRemoteMessageRequest(code: number, data, reply, option)"), std::string::npos);
|
||||
EXPECT_NE(data.find("async onRemoteMessageRequest(code: number, data:rpc.MessageSequence,"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos);
|
||||
@ -652,7 +652,7 @@ HWTEST_F(TsCodeEmitterStubTest, EmitInterfaceStubMethodImpls_003, TestSize.Level
|
||||
tsCodeGen_->EmitInterfaceStubMethodImpls(stringBuilder, CodeEmitter::TAB);
|
||||
std::string data(stringBuilder.ToString().string());
|
||||
EXPECT_TRUE(data.length());
|
||||
EXPECT_NE(data.find("onRemoteMessageRequest(code: number, data, reply, option)"), std::string::npos);
|
||||
EXPECT_NE(data.find("async onRemoteMessageRequest(code: number, data:rpc.MessageSequence,"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos);
|
||||
@ -688,7 +688,7 @@ HWTEST_F(TsCodeEmitterStubTest, EmitInterfaceStubMethodImpls_004, TestSize.Level
|
||||
tsCodeGen_->EmitInterfaceStubMethodImpls(stringBuilder, CodeEmitter::TAB);
|
||||
std::string data(stringBuilder.ToString().string());
|
||||
EXPECT_TRUE(data.length());
|
||||
EXPECT_NE(data.find("onRemoteMessageRequest(code: number, data, reply, option)"), std::string::npos);
|
||||
EXPECT_NE(data.find("async onRemoteMessageRequest(code: number, data:rpc.MessageSequence,"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos);
|
||||
@ -723,7 +723,7 @@ HWTEST_F(TsCodeEmitterStubTest, EmitInterfaceStubMethodImpls_005, TestSize.Level
|
||||
tsCodeGen_->EmitInterfaceStubMethodImpls(stringBuilder, CodeEmitter::TAB);
|
||||
std::string data(stringBuilder.ToString().string());
|
||||
EXPECT_TRUE(data.length());
|
||||
EXPECT_NE(data.find("onRemoteMessageRequest(code: number, data, reply, option)"), std::string::npos);
|
||||
EXPECT_NE(data.find("async onRemoteMessageRequest(code: number, data:rpc.MessageSequence,"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos);
|
||||
EXPECT_NE(data.find("voidParameterTypeInt"), std::string::npos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user