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/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" | 19 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
20 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" | 20 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" |
21 #include "components/dom_distiller/core/article_entry.h" | 21 #include "components/dom_distiller/core/article_entry.h" |
22 #include "components/dom_distiller/core/distilled_page_prefs.h" | 22 #include "components/dom_distiller/core/distilled_page_prefs.h" |
23 #include "components/dom_distiller/core/distiller.h" | 23 #include "components/dom_distiller/core/distiller.h" |
24 #include "components/dom_distiller/core/dom_distiller_service.h" | 24 #include "components/dom_distiller/core/dom_distiller_service.h" |
25 #include "components/dom_distiller/core/dom_distiller_store.h" | 25 #include "components/dom_distiller/core/dom_distiller_store.h" |
26 #include "components/dom_distiller/core/proto/distilled_article.pb.h" | 26 #include "components/dom_distiller/core/proto/distilled_article.pb.h" |
27 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 27 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
28 #include "components/dom_distiller/core/task_tracker.h" | 28 #include "components/dom_distiller/core/task_tracker.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 protobuf_output_stream_; | 439 protobuf_output_stream_; |
440 }; | 440 }; |
441 | 441 |
442 IN_PROC_BROWSER_TEST_F(ContentExtractor, MANUAL_ExtractUrl) { | 442 IN_PROC_BROWSER_TEST_F(ContentExtractor, MANUAL_ExtractUrl) { |
443 SetDistillerJavaScriptWorldId(content::ISOLATED_WORLD_ID_CONTENT_END); | 443 SetDistillerJavaScriptWorldId(content::ISOLATED_WORLD_ID_CONTENT_END); |
444 Start(); | 444 Start(); |
445 base::RunLoop().Run(); | 445 base::RunLoop().Run(); |
446 } | 446 } |
447 | 447 |
448 } // namespace dom_distiller | 448 } // namespace dom_distiller |
OLD | NEW |