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/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |