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

Unified Diff: content/browser/plugin_service_impl_browsertest.cc

Issue 19844003: Remove webkit/plugins/npapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove GetDefaultWindowParent Created 7 years, 5 months 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: content/browser/plugin_service_impl_browsertest.cc
===================================================================
--- content/browser/plugin_service_impl_browsertest.cc (revision 212595)
+++ content/browser/plugin_service_impl_browsertest.cc (working copy)
@@ -18,7 +18,6 @@
#include "content/shell/shell.h"
#include "content/test/content_browser_test.h"
#include "testing/gmock/include/gmock/gmock.h"
-#include "webkit/plugins/npapi/plugin_utils.h"
namespace content {
@@ -160,7 +159,7 @@
// Try to open a channel to the test plugin. Minimal plugin process spawning
// test for the PluginService interface.
IN_PROC_BROWSER_TEST_F(PluginServiceTest, OpenChannelToPlugin) {
- if (!webkit::npapi::NPAPIPluginsSupported())
+ if (!PluginServiceImpl::GetInstance()->NPAPIPluginsSupported())
return;
MockPluginProcessHostClient mock_client(GetResourceContext(), false);
BrowserThread::PostTask(
@@ -170,7 +169,7 @@
}
IN_PROC_BROWSER_TEST_F(PluginServiceTest, OpenChannelToDeniedPlugin) {
- if (!webkit::npapi::NPAPIPluginsSupported())
+ if (!PluginServiceImpl::GetInstance()->NPAPIPluginsSupported())
return;
MockPluginServiceFilter filter;
PluginServiceImpl::GetInstance()->SetFilter(&filter);
@@ -307,7 +306,7 @@
IN_PROC_BROWSER_TEST_F(
PluginServiceTest, CancelBeforeSentOpenChannelToPluginProcessHost) {
- if (!webkit::npapi::NPAPIPluginsSupported())
+ if (!PluginServiceImpl::GetInstance()->NPAPIPluginsSupported())
return;
::testing::StrictMock<MockCanceledBeforeSentPluginProcessHostClient>
mock_client(GetResourceContext());
@@ -361,7 +360,7 @@
// Should not attempt to open a channel, since it should be canceled early on.
IN_PROC_BROWSER_TEST_F(
PluginServiceTest, CancelAfterSentOpenChannelToPluginProcessHost) {
- if (!webkit::npapi::NPAPIPluginsSupported())
+ if (!PluginServiceImpl::GetInstance()->NPAPIPluginsSupported())
return;
::testing::StrictMock<MockCanceledAfterSentPluginProcessHostClient>
mock_client(GetResourceContext());

Powered by Google App Engine
This is Rietveld 408576698