OLD | NEW |
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 Loading... |
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 |
OLD | NEW |