OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <sstream> | 6 #include <sstream> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/path_service.h" | 15 #include "base/path_service.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
20 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" | 21 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
21 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" | 22 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" |
22 #include "components/dom_distiller/core/article_entry.h" | 23 #include "components/dom_distiller/core/article_entry.h" |
23 #include "components/dom_distiller/core/distilled_page_prefs.h" | 24 #include "components/dom_distiller/core/distilled_page_prefs.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 protobuf_output_stream_; | 442 protobuf_output_stream_; |
442 }; | 443 }; |
443 | 444 |
444 IN_PROC_BROWSER_TEST_F(ContentExtractor, MANUAL_ExtractUrl) { | 445 IN_PROC_BROWSER_TEST_F(ContentExtractor, MANUAL_ExtractUrl) { |
445 SetDistillerJavaScriptWorldId(content::ISOLATED_WORLD_ID_CONTENT_END); | 446 SetDistillerJavaScriptWorldId(content::ISOLATED_WORLD_ID_CONTENT_END); |
446 Start(); | 447 Start(); |
447 base::RunLoop().Run(); | 448 base::RunLoop().Run(); |
448 } | 449 } |
449 | 450 |
450 } // namespace dom_distiller | 451 } // namespace dom_distiller |
OLD | NEW |