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

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

Issue 10822030: Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 }; 43 };
44 44
45 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) { 45 IN_PROC_BROWSER_TEST_F(PluginDataRemoverTest, RemoveData) {
46 PluginDataRemoverImpl plugin_data_remover(GetBrowserContext()); 46 PluginDataRemoverImpl plugin_data_remover(GetBrowserContext());
47 plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType); 47 plugin_data_remover.set_mime_type(kNPAPITestPluginMimeType);
48 base::WaitableEventWatcher watcher; 48 base::WaitableEventWatcher watcher;
49 base::WaitableEvent* event = 49 base::WaitableEvent* event =
50 plugin_data_remover.StartRemoving(base::Time()); 50 plugin_data_remover.StartRemoving(base::Time());
51 watcher.StartWatching(event, this); 51 watcher.StartWatching(event, this);
52 ui_test_utils::RunMessageLoop(); 52 content::RunMessageLoop();
53 } 53 }
54 54
55 } // namespace content 55 } // namespace content
OLDNEW
« 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