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

Unified Diff: content/browser/plugin_data_remover_impl_browsertest.cc

Issue 1182303010: Delete the NPAPI plugin browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 6 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
« no previous file with comments | « chrome/test/data/windowed_npapi_plugin.html ('k') | content/browser/plugin_service_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_data_remover_impl_browsertest.cc
diff --git a/content/browser/plugin_data_remover_impl_browsertest.cc b/content/browser/plugin_data_remover_impl_browsertest.cc
deleted file mode 100644
index da502672b8d4c5a823e6eab89b854bcb4b8d8b00..0000000000000000000000000000000000000000
--- a/content/browser/plugin_data_remover_impl_browsertest.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// 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 "base/base_paths.h"
-#include "base/callback.h"
-#include "base/command_line.h"
-#include "base/path_service.h"
-#include "base/synchronization/waitable_event_watcher.h"
-#include "content/browser/plugin_data_remover_impl.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/common/content_switches.h"
-#include "content/public/test/content_browser_test.h"
-#include "content/public/test/test_utils.h"
-#include "content/shell/browser/shell.h"
-
-namespace content {
-
-namespace {
-const char* kNPAPITestPluginMimeType = "application/vnd.npapi-test";
-}
-
-class PluginDataRemoverTest : public ContentBrowserTest {
- public:
- PluginDataRemoverTest() {}
-
- void OnWaitableEventSignaled(base::WaitableEvent* waitable_event) {
- base::MessageLoop::current()->Quit();
- }
-
- void SetUpCommandLine(base::CommandLine* command_line) override {
-#if defined(OS_MACOSX)
- base::FilePath browser_directory;
- PathService::Get(base::DIR_MODULE, &browser_directory);
- command_line->AppendSwitchPath(switches::kExtraPluginDir,
- browser_directory.AppendASCII("plugins"));
-#endif
- // TODO(jam): since these plugin tests are running under Chrome, we need to
- // tell it to disable its security features for old plugins. Once this is
- // running under content_browsertests, these flags won't be needed.
- // http://crbug.com/90448
- // switches::kAlwaysAuthorizePlugins
- command_line->AppendSwitch("always-authorize-plugins");
- }
-};
-
-IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) {
- PluginDataRemoverImpl plugin_data_remover(
- shell()->web_contents()->GetBrowserContext());
- plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType);
- base::WaitableEventWatcher watcher;
- base::WaitableEvent* event =
- plugin_data_remover.StartRemoving(base::Time());
- watcher.StartWatching(
- event,
- base::Bind(&PluginDataRemoverTest::OnWaitableEventSignaled, this));
- RunMessageLoop();
-}
-
-} // namespace content
« no previous file with comments | « chrome/test/data/windowed_npapi_plugin.html ('k') | content/browser/plugin_service_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698