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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/feature_list.h" | 14 #include "base/feature_list.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/format_macros.h" | 18 #include "base/format_macros.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/message_loop/message_loop.h" |
21 #include "base/metrics/field_trial.h" | 22 #include "base/metrics/field_trial.h" |
22 #include "base/metrics/field_trial_params.h" | 23 #include "base/metrics/field_trial_params.h" |
23 #include "base/run_loop.h" | 24 #include "base/run_loop.h" |
24 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
25 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
26 #include "base/test/mock_entropy_provider.h" | 27 #include "base/test/mock_entropy_provider.h" |
27 #include "base/test/scoped_feature_list.h" | 28 #include "base/test/scoped_feature_list.h" |
28 #include "base/threading/platform_thread.h" | 29 #include "base/threading/platform_thread.h" |
29 #include "base/threading/sequenced_worker_pool.h" | 30 #include "base/threading/sequenced_worker_pool.h" |
30 #include "base/threading/thread_restrictions.h" | 31 #include "base/threading/thread_restrictions.h" |
(...skipping 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2738 | 2739 |
2739 std::vector<DownloadItem*> downloads; | 2740 std::vector<DownloadItem*> downloads; |
2740 DownloadManagerForShell(shell())->GetAllDownloads(&downloads); | 2741 DownloadManagerForShell(shell())->GetAllDownloads(&downloads); |
2741 ASSERT_EQ(1u, downloads.size()); | 2742 ASSERT_EQ(1u, downloads.size()); |
2742 | 2743 |
2743 EXPECT_EQ(FILE_PATH_LITERAL("foo"), | 2744 EXPECT_EQ(FILE_PATH_LITERAL("foo"), |
2744 downloads[0]->GetTargetFilePath().BaseName().value()); | 2745 downloads[0]->GetTargetFilePath().BaseName().value()); |
2745 } | 2746 } |
2746 | 2747 |
2747 } // namespace content | 2748 } // namespace content |
OLD | NEW |