Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1685)

Unified Diff: chrome/browser/printing/print_preview_test.cc

Issue 11417003: Reland r167487: Get full WebPluginInfo for the PDF plug-in before enabling it for print preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}
« no previous file with comments | « chrome/browser/printing/print_preview_test.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698