summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_preview_test.cc
blob: 22eb61cf2483b1fd52032aefa66649fc06d4e9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/printing/print_preview_test.h"

#include "chrome/test/base/dialog_test_browser_window.h"
#include "content/public/browser/plugin_service.h"

PrintPreviewTest::PrintPreviewTest() {}
PrintPreviewTest::~PrintPreviewTest() {}

void PrintPreviewTest::SetUp() {
  BrowserWithTestWindowTest::SetUp();

  // The PluginService will be destroyed at the end of the test (due to the
  // ShadowingAtExitManager in our base class).
  content::PluginService::GetInstance()->Init();
  content::PluginService::GetInstance()->DisablePluginsDiscoveryForTesting();
}

BrowserWindow* PrintPreviewTest::CreateBrowserWindow() {
  return new DialogTestBrowserWindow;
}