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 // This file contains download browser tests that are known to be runnable | 5 // This file contains download browser tests that are known to be runnable |
6 // in a pure content context. Over time tests should be migrated here. | 6 // in a pure content context. Over time tests should be migrated here. |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "content/browser/byte_stream.h" | 16 #include "content/browser/byte_stream.h" |
17 #include "content/browser/download/download_file_factory.h" | 17 #include "content/browser/download/download_file_factory.h" |
18 #include "content/browser/download/download_file_impl.h" | 18 #include "content/browser/download/download_file_impl.h" |
19 #include "content/browser/download/download_item_impl.h" | 19 #include "content/browser/download/download_item_impl.h" |
20 #include "content/browser/download/download_manager_impl.h" | 20 #include "content/browser/download/download_manager_impl.h" |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 ASSERT_TRUE(test_server.InitializeAndWaitUntilReady()); | 1808 ASSERT_TRUE(test_server.InitializeAndWaitUntilReady()); |
1809 | 1809 |
1810 GURL url = test_server.GetURL("/empty.bin"); | 1810 GURL url = test_server.GetURL("/empty.bin"); |
1811 test_server.ServeFilesFromDirectory(GetTestFilePath("download", "")); | 1811 test_server.ServeFilesFromDirectory(GetTestFilePath("download", "")); |
1812 | 1812 |
1813 NavigateToURLAndWaitForDownload(shell(), url, DownloadItem::COMPLETE); | 1813 NavigateToURLAndWaitForDownload(shell(), url, DownloadItem::COMPLETE); |
1814 // That's it. This should work without crashing. | 1814 // That's it. This should work without crashing. |
1815 } | 1815 } |
1816 | 1816 |
1817 } // namespace content | 1817 } // namespace content |
OLD | NEW |