#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include <memory>
#include <string>
#include "base/memory/raw_ref.h"
#include "build/build_config.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_finder.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
#include "chrome/test/base/dialog_test_browser_window.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"
#include "ui/web_dialogs/web_dialog_delegate.h"
#include "url/gurl.h"
WebContents;
WebContentsObserver;
namespace {
class TestWebContentsDelegate : public content::WebContentsDelegate { … };
}
namespace printing {
PrintPreviewDialogControllerUnitTest;
TEST_F(PrintPreviewDialogControllerUnitTest, IsPrintPreviewURL) { … }
TEST_F(PrintPreviewDialogControllerUnitTest, IsPrintPreviewContentURL) { … }
TEST_F(PrintPreviewDialogControllerUnitTest, GetOrCreatePreviewDialog) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_MultiplePreviewDialogs …
#else
#define MAYBE_MultiplePreviewDialogs …
#endif
TEST_F(PrintPreviewDialogControllerUnitTest, MAYBE_MultiplePreviewDialogs) { … }
TEST_F(PrintPreviewDialogControllerUnitTest, ClearInitiatorDetails) { … }
TEST_F(PrintPreviewDialogControllerUnitTest, CloseDialogOnNavigation) { … }
TEST_F(PrintPreviewDialogControllerUnitTest, MultiplePreviewDialogsClose) { … }
class PrintPreviewDialogControllerDialogDelegateTest
: public PrintPreviewDialogControllerUnitTest { … };
TEST_F(PrintPreviewDialogControllerDialogDelegateTest, GetDialogSizeMinSize) { … }
TEST_F(PrintPreviewDialogControllerDialogDelegateTest, GetDialogSizeHD) { … }
TEST_F(PrintPreviewDialogControllerDialogDelegateTest, GetDialogSizeUWFHD) { … }
}