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

Unified Diff: chrome/browser/chromeos/gview_request_interceptor_unittest.cc

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up WebPluginInfo and rebased on fixed PluginGroup::InitFrom. Created 10 years 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/chromeos/gview_request_interceptor_unittest.cc
diff --git a/chrome/browser/chromeos/gview_request_interceptor_unittest.cc b/chrome/browser/chromeos/gview_request_interceptor_unittest.cc
index 6f9c68e20ece6f92578aa3fbea4fea9fc8e41fea..dd7de003481fa79f560d4d6655b88e88bcd15507 100644
--- a/chrome/browser/chromeos/gview_request_interceptor_unittest.cc
+++ b/chrome/browser/chromeos/gview_request_interceptor_unittest.cc
@@ -68,6 +68,8 @@ class GViewRequestInterceptorTest : public testing::Test {
void RegisterPDFPlugin() {
webkit::npapi::PluginVersionInfo info;
info.path = pdf_path_;
+ info.product_name = UTF8ToWide("PDF Internal Plugin");
jam 2010/12/21 19:57:42 why is this needed here?
pastarmovj 2010/12/21 20:31:19 I use the existence of a description as a marker f
+ info.file_description = UTF8ToWide("PDF Internal Plugin");
memset(&info.entry_points, 0, sizeof(info.entry_points));
webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(info);
webkit::npapi::PluginList::Singleton()->RefreshPlugins();
@@ -129,7 +131,8 @@ TEST_F(GViewRequestInterceptorTest, DoNotInterceptPdfWhenEnabled) {
if (!enabled) {
bool pdf_plugin_enabled =
- webkit::npapi::PluginList::Singleton()->EnablePlugin(pdf_path_);
+ webkit::npapi::PluginList::Singleton()->EnablePlugin(pdf_path_,
+ string16());
EXPECT_TRUE(pdf_plugin_enabled);
}
@@ -146,7 +149,8 @@ TEST_F(GViewRequestInterceptorTest, InterceptPdfWhenDisabled) {
if (enabled) {
bool pdf_plugin_disabled =
- webkit::npapi::PluginList::Singleton()->DisablePlugin(pdf_path_);
+ webkit::npapi::PluginList::Singleton()->DisablePlugin(pdf_path_,
+ string16());
EXPECT_TRUE(pdf_plugin_disabled);
}

Powered by Google App Engine
This is Rietveld 408576698