| 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
|
|
|