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

Side by Side Diff: chrome/browser/plugin_data_remover_browsertest.cc

Issue 7387010: Add PluginServiceFilter interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/plugin_data_remover.cc ('k') | chrome/browser/plugin_data_remover_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/plugin_data_remover.h" 5 #include "chrome/browser/plugin_data_remover.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/synchronization/waitable_event_watcher.h" 9 #include "base/synchronization/waitable_event_watcher.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 23 matching lines...) Expand all
34 #ifdef OS_MACOSX 34 #ifdef OS_MACOSX
35 FilePath browser_directory; 35 FilePath browser_directory;
36 PathService::Get(chrome::DIR_APP, &browser_directory); 36 PathService::Get(chrome::DIR_APP, &browser_directory);
37 command_line->AppendSwitchPath(switches::kExtraPluginDir, 37 command_line->AppendSwitchPath(switches::kExtraPluginDir,
38 browser_directory.AppendASCII("plugins")); 38 browser_directory.AppendASCII("plugins"));
39 #endif 39 #endif
40 } 40 }
41 }; 41 };
42 42
43 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) { 43 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) {
44 scoped_refptr<PluginDataRemover> plugin_data_remover(new PluginDataRemover()); 44 scoped_refptr<PluginDataRemover> plugin_data_remover(
45 new PluginDataRemover(browser()->profile()));
45 plugin_data_remover->set_mime_type(kNPAPITestPluginMimeType); 46 plugin_data_remover->set_mime_type(kNPAPITestPluginMimeType);
46 base::WaitableEventWatcher watcher; 47 base::WaitableEventWatcher watcher;
47 base::WaitableEvent* event = 48 base::WaitableEvent* event =
48 plugin_data_remover->StartRemoving(base::Time()); 49 plugin_data_remover->StartRemoving(base::Time());
49 watcher.StartWatching(event, this); 50 watcher.StartWatching(event, this);
50 ui_test_utils::RunMessageLoop(); 51 ui_test_utils::RunMessageLoop();
51 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_data_remover.cc ('k') | chrome/browser/plugin_data_remover_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698