summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/printer_job_handler_unittest.cc
diff options
context:
space:
mode:
authorgene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 08:48:24 +0000
committergene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 08:48:24 +0000
commit0c27b1ba7c313e5211f7a8aa08b2835142df27fd (patch)
treeb711699853251ecc4358a14897b050117a7a08b7 /chrome/service/cloud_print/printer_job_handler_unittest.cc
parentee1de13434e991ab4ff923d7cccf64e33b01ba5c (diff)
downloadchromium_src-0c27b1ba7c313e5211f7a8aa08b2835142df27fd.zip
chromium_src-0c27b1ba7c313e5211f7a8aa08b2835142df27fd.tar.gz
chromium_src-0c27b1ba7c313e5211f7a8aa08b2835142df27fd.tar.bz2
Cloud Print connector is now using local_settings field from GCP 2.0. "current" section contain current ping timeout from the connector. "pending" section will contain a proposed change from the server side. Connector will look up any new params in the "pending" section and store and use this value. If there is nothing in the pending section, current value from the config file will be used.
(This logic can be revisited once we re-write connector) Clean up ticket validation error message. BUG=297393 Review URL: https://codereview.chromium.org/24392003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/printer_job_handler_unittest.cc')
-rw-r--r--chrome/service/cloud_print/printer_job_handler_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/printer_job_handler_unittest.cc b/chrome/service/cloud_print/printer_job_handler_unittest.cc
index 13736d3..a41b3e8 100644
--- a/chrome/service/cloud_print/printer_job_handler_unittest.cc
+++ b/chrome/service/cloud_print/printer_job_handler_unittest.cc
@@ -231,7 +231,8 @@ std::string DownloadURI(int job_num) {
std::string InProgressURI(int job_num) {
return GetUrlForJobStatusUpdate(GURL(kExampleCloudPrintServerURL),
StringPrintf(kExampleJobID, job_num),
- PRINT_JOB_STATUS_IN_PROGRESS).spec();
+ PRINT_JOB_STATUS_IN_PROGRESS,
+ 0).spec();
}
std::string StatusResponse(int job_num, const char* status_string) {
@@ -474,6 +475,8 @@ void PrinterJobHandlerTest::SetUp() {
info_from_cloud_.tags_hash = GetHashOfPrinterInfo(basic_info_);
info_from_cloud_.caps_hash = base::MD5String(kExamplePrinterCapabilities);
+ info_from_cloud_.current_xmpp_timeout = 300;
+ info_from_cloud_.pending_xmpp_timeout = 0;
caps_and_defaults_.printer_capabilities = kExamplePrinterCapabilities;
caps_and_defaults_.caps_mime_type = kExampleCapsMimeType;