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