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 "base/file_util.h" | |
6 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/test/test_file_util.h" | 12 #include "base/test/test_file_util.h" |
13 #include "chrome/browser/download/download_path_reservation_tracker.h" | 13 #include "chrome/browser/download/download_path_reservation_tracker.h" |
14 #include "chrome/browser/download/download_target_determiner.h" | 14 #include "chrome/browser/download/download_target_determiner.h" |
15 #include "content/public/test/mock_download_item.h" | 15 #include "content/public/test/mock_download_item.h" |
16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 create_directory, | 665 create_directory, |
666 conflict_action, | 666 conflict_action, |
667 &reserved_path, | 667 &reserved_path, |
668 &verified); | 668 &verified); |
669 // We cannot truncate a path with very long extension. | 669 // We cannot truncate a path with very long extension. |
670 EXPECT_FALSE(verified); | 670 EXPECT_FALSE(verified); |
671 SetDownloadItemState(item.get(), DownloadItem::COMPLETE); | 671 SetDownloadItemState(item.get(), DownloadItem::COMPLETE); |
672 } | 672 } |
673 | 673 |
674 #endif | 674 #endif |
OLD | NEW |