mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-23 08:59:47 +00:00
add print tdd
Signed-off-by: chuangda_1 <fangwanning@huawei.com>
This commit is contained in:
commit
8fa0216421
@ -45,6 +45,7 @@ void PrintManagerClientTest::SetUp(void) {}
|
||||
|
||||
void PrintManagerClientTest::TearDown(void) {}
|
||||
|
||||
<<<<<<< HEAD
|
||||
// /**
|
||||
// * @tc.name: PrintManagerClientTest_0001
|
||||
// * @tc.desc: QueryAllExtension
|
||||
@ -1561,5 +1562,31 @@ void PrintManagerClientTest::TearDown(void) {}
|
||||
OHOS::Print::PrintManagerClient Testclient;
|
||||
Testclient.LoadServerFail();
|
||||
}
|
||||
=======
|
||||
/**
|
||||
* @tc.name: PrintManagerClientTest_0001
|
||||
* @tc.desc: QueryAllExtension
|
||||
* @tc.type: FUNC
|
||||
* @tc.require:
|
||||
*/
|
||||
HWTEST_F(PrintManagerClientTest, PrintManagerClientTest_0001, TestSize.Level1)
|
||||
{
|
||||
OHOS::Print::PrintManagerClient Testclient;
|
||||
std::vector<std::string> fileList = {"datashare://data/print/a.png",
|
||||
"datashare://data/print/b.png", "datashare://data/print/c.png"};
|
||||
std::vector<uint32_t> fdList = {1, 2};
|
||||
std::string taskId = "2";
|
||||
PrintExtensionInfo printExtensionInfo;
|
||||
printExtensionInfo.SetExtensionId("1");
|
||||
printExtensionInfo.SetVendorIcon(1);
|
||||
printExtensionInfo.SetVersion("1");
|
||||
printExtensionInfo.SetExtensionId("1");
|
||||
printExtensionInfo.SetVendorId("1");
|
||||
std::vector<PrintExtensionInfo> extensionInfos;
|
||||
extensionInfos.emplace_back(printExtensionInfo);
|
||||
Testclient.StartPrint(fileList, fdList, taskId);
|
||||
Testclient.QueryAllExtension(extensionInfos);
|
||||
}
|
||||
>>>>>>> f34402e7eb9345d6c73c55ce04e50420bf9bd5d3
|
||||
} // namespace Print
|
||||
} // namespace OHOS
|
||||
|
Loading…
Reference in New Issue
Block a user