summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_preview_test.cc
blob: 9a6a570db739c7e7aa0a3cdf860cd4c1bec530a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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/browser/prefs/pref_service.h"
#include "chrome/common/pref_names.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()->SetPluginListForTesting(
      &plugin_list_);

  profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false);
}