1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/printing/print_preview_test.h"
7 #include "chrome/test/base/dialog_test_browser_window.h"
8 #include "content/public/browser/plugin_service.h"
10 PrintPreviewTest::PrintPreviewTest() {}
11 PrintPreviewTest::~PrintPreviewTest() {}
13 void PrintPreviewTest::SetUp() {
14 BrowserWithTestWindowTest::SetUp();
16 // The PluginService will be destroyed at the end of the test (due to the
17 // ShadowingAtExitManager in our base class).
18 content::PluginService::GetInstance()->Init();
19 content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting();
22 BrowserWindow
* PrintPreviewTest::CreateBrowserWindow() {
23 return new DialogTestBrowserWindow
;