OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/scoped_temp_dir.h" | 8 #include "base/scoped_temp_dir.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/download/download_history.h" | 10 #include "chrome/browser/download/download_history.h" |
11 #include "chrome/browser/download/download_item.h" | |
12 #include "chrome/browser/download/download_manager.h" | |
13 #include "chrome/browser/history/download_history_info.h" | 11 #include "chrome/browser/history/download_history_info.h" |
14 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
17 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 15 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
18 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
19 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
20 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
| 20 #include "content/browser/download/download_item.h" |
| 21 #include "content/browser/download/download_manager.h" |
22 #include "content/browser/net/url_request_mock_http_job.h" | 22 #include "content/browser/net/url_request_mock_http_job.h" |
23 #include "content/browser/tab_contents/tab_contents.h" | 23 #include "content/browser/tab_contents/tab_contents.h" |
24 #include "content/common/content_notification_types.h" | 24 #include "content/common/content_notification_types.h" |
25 #include "content/common/notification_service.h" | 25 #include "content/common/notification_service.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("save_page"); | 30 static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("save_page"); |
31 | 31 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 history_entries_.end()); | 312 history_entries_.end()); |
313 | 313 |
314 EXPECT_TRUE(file_util::PathExists(full_file_name)); | 314 EXPECT_TRUE(file_util::PathExists(full_file_name)); |
315 EXPECT_FALSE(file_util::PathExists(dir)); | 315 EXPECT_FALSE(file_util::PathExists(dir)); |
316 EXPECT_TRUE(file_util::ContentsEqual( | 316 EXPECT_TRUE(file_util::ContentsEqual( |
317 test_dir_.Append(FilePath(kTestDir)).Append(file_name), | 317 test_dir_.Append(FilePath(kTestDir)).Append(file_name), |
318 full_file_name)); | 318 full_file_name)); |
319 } | 319 } |
320 | 320 |
321 } | 321 } |
OLD | NEW |