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

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

Issue 2978673002: Update print preview test to not use CallJavascriptFunctionUnsafe (Closed)
Patch Set: Created 3 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 722c3168e2f8b510143fea1bf8aa4019ea4c701e..76f5acd9a9abb80ca2dbe7385e79b2897ac861d5 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
@@ -23,6 +23,7 @@ struct PrintHostMsg_RequestPrintPreview_Params;
struct PrintHostMsg_SetOptionsFromDocument_Params;
namespace base {
+class DictionaryValue;
class FilePath;
class RefCountedBytes;
}
@@ -158,6 +159,14 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
// Passes |closure| to PrintPreviewHandler::SetPdfSavedClosureForTesting().
void SetPdfSavedClosureForTesting(const base::Closure& closure);
+ // Tell the handler to send the enable-manipulate-settings-for-test WebUI
+ // event.
+ void SendEnableManipulateSettingsForTest();
+
+ // Tell the handler to send the manipulate-settings-for-test WebUI event
+ // to set the print preview settings contained in |settings|.
+ void SendManipulateSettingsForTest(const base::DictionaryValue& settings);
+
private:
FRIEND_TEST_ALL_PREFIXES(PrintPreviewDialogControllerUnitTest,
TitleAfterReload);

Powered by Google App Engine
This is Rietveld 408576698