| Index: chrome/browser/printing/print_preview_test.cc
|
| diff --git a/chrome/browser/printing/print_preview_test.cc b/chrome/browser/printing/print_preview_test.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9a6a570db739c7e7aa0a3cdf860cd4c1bec530a4
|
| --- /dev/null
|
| +++ b/chrome/browser/printing/print_preview_test.cc
|
| @@ -0,0 +1,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);
|
| +}
|
|
|