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 <string.h> | 5 #include <string.h> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 9 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
10 #include "chrome/browser/dom_distiller/tab_utils.h" | 10 #include "chrome/browser/dom_distiller/tab_utils.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "chrome/common/chrome_switches.h" | |
14 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
16 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" | 15 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
17 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" | 16 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" |
18 #include "components/dom_distiller/core/dom_distiller_service.h" | 17 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 18 #include "components/dom_distiller/core/dom_distiller_switches.h" |
19 #include "components/dom_distiller/core/task_tracker.h" | 19 #include "components/dom_distiller/core/task_tracker.h" |
20 #include "components/dom_distiller/core/url_constants.h" | 20 #include "components/dom_distiller/core/url_constants.h" |
21 #include "components/dom_distiller/core/url_utils.h" | 21 #include "components/dom_distiller/core/url_utils.h" |
22 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
24 #include "content/public/browser/web_contents_observer.h" | 24 #include "content/public/browser/web_contents_observer.h" |
25 #include "content/public/common/isolated_world_ids.h" | 25 #include "content/public/common/isolated_world_ids.h" |
26 #include "content/public/test/browser_test_utils.h" | 26 #include "content/public/test/browser_test_utils.h" |
27 #include "content/public/test/test_utils.h" | 27 #include "content/public/test/test_utils.h" |
28 #include "net/test/embedded_test_server/embedded_test_server.h" | 28 #include "net/test/embedded_test_server/embedded_test_server.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 "document.title")->GetAsString(&page_title); | 172 "document.title")->GetAsString(&page_title); |
173 EXPECT_EQ("Test Page Title", page_title); | 173 EXPECT_EQ("Test Page Title", page_title); |
174 | 174 |
175 content::WebContentsDestroyedWatcher destroyed_watcher( | 175 content::WebContentsDestroyedWatcher destroyed_watcher( |
176 destination_web_contents); | 176 destination_web_contents); |
177 browser()->tab_strip_model()->CloseWebContentsAt(1, 0); | 177 browser()->tab_strip_model()->CloseWebContentsAt(1, 0); |
178 destroyed_watcher.Wait(); | 178 destroyed_watcher.Wait(); |
179 } | 179 } |
180 | 180 |
181 } // namespace dom_distiller | 181 } // namespace dom_distiller |
OLD | NEW |