mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2025-03-02 07:15:50 +00:00
添加tdd测试用例 Signed-off-by:xiongqiao3@huawei.com
Signed-off-by: xiongqiao <xiongqiao3@huawei.com>
This commit is contained in:
parent
7e2ff66eab
commit
56dfd5b804
@ -2265,27 +2265,7 @@ HWTEST_F(PrintServiceAbilityTest, PrintServiceAbilityTest_0106, TestSize.Level1)
|
||||
sptr<IRemoteObject> token = helper -> GetBundleMgr();
|
||||
service->StartPrint(fileList, fdList, taskId, token);
|
||||
|
||||
PrintAttributes printAttributes;
|
||||
printAttributes.SetCopyNumber(1);
|
||||
OHOS::Print::PrintRange range;
|
||||
range.SetStartPage(1);
|
||||
printAttributes.SetPageRange(range);
|
||||
printAttributes.SetIsSequential(true);
|
||||
OHOS::Print::PrintPageSize pageSize;
|
||||
pageSize.SetId("1");
|
||||
printAttributes.SetPageSize(pageSize);
|
||||
printAttributes.SetIsLandscape(true);
|
||||
printAttributes.SetDirectionMode(1);
|
||||
printAttributes.SetColorMode(1);
|
||||
printAttributes.SetDuplexMode(1);
|
||||
OHOS::Print::PrintMargin margin;
|
||||
margin.SetTop(1);
|
||||
printAttributes.SetMargin(margin);
|
||||
printAttributes.SetOption("1");
|
||||
|
||||
std::string jobName = "123.pdf";
|
||||
service->PrintByAdapter(jobName, printAttributes, taskId, token);
|
||||
|
||||
|
||||
helper = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user