Chromium Code Reviews| 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 be4f82b75d50accba488ae80ea4e4fd65cf5d240..42996e23adf45c0b5f0af10c525cde4eeca4a57b 100644 |
| --- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h |
| @@ -7,6 +7,7 @@ |
| #include <string> |
| +#include "base/callback_forward.h" |
| #include "base/gtest_prod_util.h" |
| #include "base/memory/ref_counted.h" |
| #include "base/time/time.h" |
| @@ -159,6 +160,11 @@ class PrintPreviewUI : public ConstrainedWebDialogUI { |
| // the printing without having to click a button on the print preview dialog. |
| void SetSelectedFileForTesting(const base::FilePath& path); |
| + // Calls |handler->SetPdfSavedClosureForTesting()|. Allows for tests waiting |
|
Lei Zhang
2014/07/22 21:25:37
Since PrintPreviewUI doesn't actually do anything
ivandavid
2014/07/22 21:46:07
Done.
|
| + // to see if an attempt to save the PDF was made. It doesn't notify the test |
| + // if the save was successful for not. |
| + void SetPdfSavedClosureForTesting(const base::Closure& closure); |
| + |
| private: |
| friend class PrintPreviewHandlerTest; |
| FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); |