Commit 5585202c authored by Piotr Pawliczek's avatar Piotr Pawliczek Committed by Commit Bot

BulkPrintersCalculator: Entry with an incorrect uri in the unittest

This patch extends the unittest by adding an entry with incorrect uri.
I was not able to reproduce the bug described in the issue.

BUG=chromium:1015916
TEST=on my workstation by running unit_tests

Change-Id: I989fc9d82956f16b277648ec942de454763fadd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1912695
Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org>
Reviewed-by: default avatarSean Kau <skau@chromium.org>
Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718382}
parent 5e52cec8
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
namespace chromeos { namespace chromeos {
namespace { namespace {
// The number of printers in BulkPolicyContentsJson. // The number of correct printers in BulkPolicyContentsJson.
constexpr size_t kNumPrinters = 3; constexpr size_t kNumPrinters = 3;
// An example bulk printer configuration file. // An example bulk printer configuration file.
...@@ -32,6 +32,18 @@ constexpr char kBulkPolicyContentsJson[] = R"json( ...@@ -32,6 +32,18 @@ constexpr char kBulkPolicyContentsJson[] = R"json(
"ppd_resource": { "ppd_resource": {
"effective_model": "MS610de" "effective_model": "MS610de"
} }
}, {
"id": "Incorrect uri",
"display_name": "aaa",
"description": "bbbb",
"manufacturer": "cccc",
"model":"dddd",
"uri":"ipp://:",
"uuid":"1c555fdb-1193-2204-3346-44c046e79d12",
"ppd_resource":{
"effective_manufacturer": "eee",
"effective_model": "fff"
}
}, { }, {
"id": "Second", "id": "Second",
"display_name": "Color Laser", "display_name": "Color Laser",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment