#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
#include <stdint.h>
#include <vector>
#include "base/memory/ref_counted_memory.h"
#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include "chrome/browser/printing/print_preview_test.h"
#include "chrome/browser/printing/print_view_manager.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_handler.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/prefs/pref_service.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/test/scoped_web_ui_controller_factory_registration.h"
#include "printing/print_job_constants.h"
WebContents;
WebContentsModalDialogManager;
namespace printing {
namespace {
scoped_refptr<base::RefCountedBytes> CreateTestData() { … }
bool IsShowingWebContentsModalDialog(WebContents* tab) { … }
class FakePrintPreviewHandler : public PrintPreviewHandler { … };
class FakePrintPreviewUI : public PrintPreviewUI { … };
class TestPrintPreviewUIConfig
: public content::DefaultWebUIConfig<FakePrintPreviewUI> { … };
}
class PrintPreviewUIUnitTest : public PrintPreviewTest { … };
TEST_F(PrintPreviewUIUnitTest, PrintPreviewData) { … }
TEST_F(PrintPreviewUIUnitTest, PrintPreviewDraftPages) { … }
TEST_F(PrintPreviewUIUnitTest, ShouldCancelRequest) { … }
TEST_F(PrintPreviewUIUnitTest, PrintPreviewFailureCancelsPendingActions) { … }
TEST_F(PrintPreviewUIUnitTest, GetPageToNupConvertIndexWithNoPagesToRender) { … }
TEST_F(PrintPreviewUIUnitTest,
GetPageToNupConvertIndexWithPartialPagesToRender) { … }
TEST_F(PrintPreviewUIUnitTest, GetPageToNupConvertIndexWithAllPagesToRender) { … }
}