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

Side by Side Diff: content/browser/plugin_data_remover_impl_browsertest.cc

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/synchronization/waitable_event_watcher.h" 8 #include "base/synchronization/waitable_event_watcher.h"
9 #include "content/browser/plugin_data_remover_impl.h" 9 #include "content/browser/plugin_data_remover_impl.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }; 45 };
46 46
47 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) { 47 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) {
48 PluginDataRemoverImpl plugin_data_remover( 48 PluginDataRemoverImpl plugin_data_remover(
49 shell()->web_contents()->GetBrowserContext()); 49 shell()->web_contents()->GetBrowserContext());
50 plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType); 50 plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType);
51 base::WaitableEventWatcher watcher; 51 base::WaitableEventWatcher watcher;
52 base::WaitableEvent* event = 52 base::WaitableEvent* event =
53 plugin_data_remover.StartRemoving(base::Time()); 53 plugin_data_remover.StartRemoving(base::Time());
54 watcher.StartWatching(event, this); 54 watcher.StartWatching(event, this);
55 content::RunMessageLoop(); 55 RunMessageLoop();
56 } 56 }
57 57
58 } // namespace content 58 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698