Commit dd23f06c authored by rbpotter's avatar rbpotter Committed by Commit Bot

PrintPreviewHandler: Add a GetPreview test

Bug: None
Change-Id: I3441a7a704df305fcb4379ee46cc00b5d3b3619d
Reviewed-on: https://chromium-review.googlesource.com/740704
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512993}
parent 616f37ba
......@@ -123,6 +123,9 @@ class PrintPreviewHandler
// Protected so unit tests can override.
virtual PrinterHandler* GetPrinterHandler(printing::PrinterType printer_type);
// Gets the initiator for the print preview dialog.
virtual content::WebContents* GetInitiator() const;
// Register/unregister from notifications of changes done to the GAIA
// cookie. Protected so unit tests can override.
virtual void RegisterForGaiaCookieChanges();
......@@ -137,6 +140,7 @@ class PrintPreviewHandler
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, GetPrinters);
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, GetPrinterCapabilities);
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, Print);
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, GetPreview);
class AccessTokenService;
content::WebContents* preview_web_contents() const;
......@@ -247,9 +251,6 @@ class PrintPreviewHandler
void SendCloudPrintJob(const std::string& callback_id,
const base::RefCountedBytes* data);
// Gets the initiator for the print preview dialog.
content::WebContents* GetInitiator() const;
// Closes the preview dialog.
void ClosePreviewDialog();
......
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