Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: extensions/browser/api/printer_provider/printer_provider_apitest.cc

Issue 1006583003: Add title property to chrome.printerProvider pritn job (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/printer_provider/printer_provider_apitest.cc
diff --git a/extensions/browser/api/printer_provider/printer_provider_apitest.cc b/extensions/browser/api/printer_provider/printer_provider_apitest.cc
index bd494d7bdec31a1da3d63b097d00683832928419..dfe5086ed684e52ab5349be678cf38bf9c1db4a3 100644
--- a/extensions/browser/api/printer_provider/printer_provider_apitest.cc
+++ b/extensions/browser/api/printer_provider/printer_provider_apitest.cc
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted_memory.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
+#include "base/strings/utf_string_conversions.h"
#include "extensions/browser/api/printer_provider/printer_provider_api.h"
#include "extensions/browser/api/printer_provider/printer_provider_api_factory.h"
#include "extensions/browser/api/printer_provider/printer_provider_print_job.h"
@@ -106,6 +107,7 @@ class PrinterProviderApiTest : public extensions::ShellApiTest {
const PrinterProviderAPI::PrintCallback& callback) {
extensions::PrinterProviderPrintJob job;
job.printer_id = extension_id + ":printer_id";
+ job.job_title = base::ASCIIToUTF16("Print job");
job.ticket_json = "{}";
job.content_type = "application/pdf";
const unsigned char kDocumentBytes[] = {'b', 'y', 't', 'e', 's'};
@@ -130,6 +132,7 @@ class PrinterProviderApiTest : public extensions::ShellApiTest {
}
job.printer_id = extension_id + ":printer_id";
+ job.job_title = base::ASCIIToUTF16("Print job");
job.ticket_json = "{}";
job.content_type = "image/pwg-raster";

Powered by Google App Engine
This is Rietveld 408576698