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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/prefs/pref_member.h" | |
20 #include "base/prefs/pref_service.h" | |
21 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
22 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
23 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
24 #include "base/test/test_file_util.h" | 22 #include "base/test/test_file_util.h" |
25 #include "build/build_config.h" | 23 #include "build/build_config.h" |
26 #include "chrome/app/chrome_command_ids.h" | 24 #include "chrome/app/chrome_command_ids.h" |
27 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 25 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
28 #include "chrome/browser/download/download_history.h" | 26 #include "chrome/browser/download/download_history.h" |
29 #include "chrome/browser/download/download_prefs.h" | 27 #include "chrome/browser/download/download_prefs.h" |
30 #include "chrome/browser/download/download_service.h" | 28 #include "chrome/browser/download/download_service.h" |
31 #include "chrome/browser/download/download_service_factory.h" | 29 #include "chrome/browser/download/download_service_factory.h" |
32 #include "chrome/browser/download/save_package_file_picker.h" | 30 #include "chrome/browser/download/save_package_file_picker.h" |
33 #include "chrome/browser/net/url_request_mock_util.h" | 31 #include "chrome/browser/net/url_request_mock_util.h" |
34 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
35 #include "chrome/browser/ui/browser.h" | 33 #include "chrome/browser/ui/browser.h" |
36 #include "chrome/browser/ui/browser_commands.h" | 34 #include "chrome/browser/ui/browser_commands.h" |
37 #include "chrome/browser/ui/browser_window.h" | 35 #include "chrome/browser/ui/browser_window.h" |
38 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 36 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
39 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
40 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
41 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
42 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
43 #include "chrome/test/base/in_process_browser_test.h" | 41 #include "chrome/test/base/in_process_browser_test.h" |
44 #include "chrome/test/base/ui_test_utils.h" | 42 #include "chrome/test/base/ui_test_utils.h" |
45 #include "components/history/core/browser/download_constants.h" | 43 #include "components/history/core/browser/download_constants.h" |
46 #include "components/history/core/browser/download_row.h" | 44 #include "components/history/core/browser/download_row.h" |
| 45 #include "components/prefs/pref_member.h" |
| 46 #include "components/prefs/pref_service.h" |
47 #include "content/public/browser/download_item.h" | 47 #include "content/public/browser/download_item.h" |
48 #include "content/public/browser/download_manager.h" | 48 #include "content/public/browser/download_manager.h" |
49 #include "content/public/browser/notification_service.h" | 49 #include "content/public/browser/notification_service.h" |
50 #include "content/public/browser/notification_types.h" | 50 #include "content/public/browser/notification_types.h" |
51 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
52 #include "content/public/common/content_switches.h" | 52 #include "content/public/common/content_switches.h" |
53 #include "content/public/common/url_constants.h" | 53 #include "content/public/common/url_constants.h" |
54 #include "content/public/test/browser_test_utils.h" | 54 #include "content/public/test/browser_test_utils.h" |
55 #include "content/public/test/test_utils.h" | 55 #include "content/public/test/test_utils.h" |
56 #include "net/base/filename_util.h" | 56 #include "net/base/filename_util.h" |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 TestMultiFramePage(save_page_type, url, 6, expected_substrings); | 1197 TestMultiFramePage(save_page_type, url, 6, expected_substrings); |
1198 } | 1198 } |
1199 | 1199 |
1200 INSTANTIATE_TEST_CASE_P( | 1200 INSTANTIATE_TEST_CASE_P( |
1201 SaveType, | 1201 SaveType, |
1202 SavePageMultiFrameBrowserTest, | 1202 SavePageMultiFrameBrowserTest, |
1203 ::testing::Values(content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML, | 1203 ::testing::Values(content::SAVE_PAGE_TYPE_AS_COMPLETE_HTML, |
1204 content::SAVE_PAGE_TYPE_AS_MHTML)); | 1204 content::SAVE_PAGE_TYPE_AS_MHTML)); |
1205 | 1205 |
1206 } // namespace | 1206 } // namespace |
OLD | NEW |