OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/test/test_blink_web_unit_test_support.h" | 5 #include "content/test/test_blink_web_unit_test_support.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
15 #include "components/scheduler/renderer/renderer_scheduler_impl.h" | 15 #include "components/scheduler/renderer/renderer_scheduler_impl.h" |
16 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" | 16 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" |
17 #include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes
ts.h" | 17 #include "components/scheduler/test/lazy_scheduler_message_loop_delegate_for_tes
ts.h" |
18 #include "content/test/mock_webclipboard_impl.h" | 18 #include "content/test/mock_webclipboard_impl.h" |
19 #include "content/test/web_gesture_curve_mock.h" | 19 #include "content/test/web_gesture_curve_mock.h" |
20 #include "content/test/web_layer_tree_view_impl_for_testing.h" | 20 #include "content/test/web_layer_tree_view_impl_for_testing.h" |
21 #include "content/test/weburl_loader_mock_factory.h" | 21 #include "content/test/weburl_loader_mock_factory.h" |
22 #include "media/base/media.h" | 22 #include "media/base/media.h" |
23 #include "net/cookies/cookie_monster.h" | 23 #include "net/cookies/cookie_monster.h" |
24 #include "net/test/spawned_test_server/spawned_test_server.h" | 24 #include "net/test/spawned_test_server/spawned_test_server.h" |
25 #include "storage/browser/database/vfs_backend.h" | 25 #include "storage/browser/database/vfs_backend.h" |
26 #include "third_party/WebKit/public/platform/WebData.h" | 26 #include "third_party/WebKit/public/platform/WebData.h" |
27 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 27 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
| 28 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
28 #include "third_party/WebKit/public/platform/WebStorageArea.h" | 29 #include "third_party/WebKit/public/platform/WebStorageArea.h" |
29 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" | 30 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
30 #include "third_party/WebKit/public/platform/WebString.h" | 31 #include "third_party/WebKit/public/platform/WebString.h" |
31 #include "third_party/WebKit/public/platform/WebURL.h" | 32 #include "third_party/WebKit/public/platform/WebURL.h" |
32 #include "third_party/WebKit/public/web/WebDatabase.h" | 33 #include "third_party/WebKit/public/web/WebDatabase.h" |
33 #include "third_party/WebKit/public/web/WebKit.h" | 34 #include "third_party/WebKit/public/web/WebKit.h" |
34 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 35 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
35 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 36 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
36 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" | 37 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" |
37 #include "v8/include/v8.h" | 38 #include "v8/include/v8.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 void TestBlinkWebUnitTestSupport::enterRunLoop() { | 374 void TestBlinkWebUnitTestSupport::enterRunLoop() { |
374 DCHECK(base::MessageLoop::current()); | 375 DCHECK(base::MessageLoop::current()); |
375 DCHECK(!base::MessageLoop::current()->is_running()); | 376 DCHECK(!base::MessageLoop::current()->is_running()); |
376 base::MessageLoop::current()->Run(); | 377 base::MessageLoop::current()->Run(); |
377 } | 378 } |
378 | 379 |
379 void TestBlinkWebUnitTestSupport::exitRunLoop() { | 380 void TestBlinkWebUnitTestSupport::exitRunLoop() { |
380 base::MessageLoop::current()->Quit(); | 381 base::MessageLoop::current()->Quit(); |
381 } | 382 } |
382 | 383 |
| 384 void TestBlinkWebUnitTestSupport::getPluginList( |
| 385 bool refresh, blink::WebPluginListBuilder* builder) { |
| 386 builder->addPlugin("pdf", "pdf", "pdf-files"); |
| 387 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); |
| 388 } |
| 389 |
383 } // namespace content | 390 } // namespace content |
OLD | NEW |