mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-23 17:09:46 +00:00
代码检视修改 Signed-off-by:baozewei@huawei.com
Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
parent
33a8ed660b
commit
046dc69283
@ -1658,13 +1658,13 @@ HWTEST_F(PrintCupsClientTest, PrintCupsClientTest_0078, TestSize.Level1)
|
||||
optionJson["printerUri"] = "ipp://192.168.0.1:111/ipp/print";
|
||||
optionJson["printerName"] = 1;
|
||||
testJob.SetOption(optionJson.dump());
|
||||
JobParameters *jobParams = printCupsClient.BuildJobParameters(testJob);
|
||||
jobParams = printCupsClient.BuildJobParameters(testJob);
|
||||
EXPECT_EQ(jobParams->printerName, PrintUtil::StandardizePrinterName(optionJson["printerName"]));
|
||||
|
||||
optionJson["printerName"] = "printer1";
|
||||
optionJson["documentFormat"] = 1;
|
||||
testJob.SetOption(optionJson.dump());
|
||||
JobParameters *jobParams = printCupsClient.BuildJobParameters(testJob);
|
||||
jobParams = printCupsClient.BuildJobParameters(testJob);
|
||||
EXPECT_EQ(jobParams->documentFormat, optionJson["documentFormat"]);
|
||||
}
|
||||
} // namespace Print
|
||||
|
Loading…
Reference in New Issue
Block a user