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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 383623002: Add a browser test that can communicate with the layout test framework and print pdfs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the keyword 'virtual' to overriden functions for combatibility with clang. Created 6 years, 5 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: chrome/browser/ui/webui/print_preview/print_preview_ui.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.h b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
index 7f32261dad683cb41ea074ec27d46de9b11e7d86..be4f82b75d50accba488ae80ea4e4fd65cf5d240 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
@@ -18,6 +18,7 @@ struct PrintHostMsg_DidGetPreviewPageCount_Params;
struct PrintHostMsg_RequestPrintPreview_Params;
namespace base {
+class FilePath;
class RefCountedBytes;
}
@@ -154,6 +155,10 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
static void SetDelegateForTesting(TestingDelegate* delegate);
+ // Allows for tests to set a file path to print a PDF to. This also initiates
+ // the printing without having to click a button on the print preview dialog.
+ void SetSelectedFileForTesting(const base::FilePath& path);
+
private:
friend class PrintPreviewHandlerTest;
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);

Powered by Google App Engine
This is Rietveld 408576698