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

Unified Diff: content/browser/plugin_data_remover_impl_browsertest.cc

Issue 10821037: Move a number of other tests from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: a little cleaner Created 8 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_data_remover_impl_browsertest.cc
===================================================================
--- content/browser/plugin_data_remover_impl_browsertest.cc (revision 148517)
+++ content/browser/plugin_data_remover_impl_browsertest.cc (working copy)
@@ -7,9 +7,11 @@
#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 "chrome/test/base/in_process_browser_test.h"
-#include "chrome/test/base/ui_test_utils.h"
+#include "content/public/test/test_utils.h"
+#include "content/shell/shell.h"
+#include "content/test/content_browser_test.h"
namespace content {
@@ -17,10 +19,10 @@
const char* kNPAPITestPluginMimeType = "application/vnd.npapi-test";
}
-class PluginDataRemoverTest : public InProcessBrowserTest,
+class PluginDataRemoverTest : public ContentBrowserTest,
public base::WaitableEventWatcher::Delegate {
public:
- PluginDataRemoverTest() : InProcessBrowserTest() { }
+ PluginDataRemoverTest() {}
virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event) {
MessageLoop::current()->Quit();
@@ -43,7 +45,8 @@
};
IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) {
- PluginDataRemoverImpl plugin_data_remover(GetBrowserContext());
+ PluginDataRemoverImpl plugin_data_remover(
+ shell()->web_contents()->GetBrowserContext());
plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType);
base::WaitableEventWatcher watcher;
base::WaitableEvent* event =
« no previous file with comments | « content/browser/indexed_db/idbbindingutilities_browsertest.cc ('k') | content/browser/plugin_service_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698