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_path.h" | 5 #include "base/file_path.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "content/browser/download/download_file_factory.h" | 8 #include "content/browser/download/download_file_factory.h" |
9 #include "content/browser/download/download_file_impl.h" | 9 #include "content/browser/download/download_file_impl.h" |
10 #include "content/browser/download/download_item_impl.h" | 10 #include "content/browser/download/download_item_impl.h" |
11 #include "content/browser/download/download_manager_impl.h" | 11 #include "content/browser/download/download_manager_impl.h" |
12 #include "content/browser/download/drag_download_file.h" | 12 #include "content/browser/download/drag_download_file.h" |
13 #include "content/browser/download/drag_download_util.h" | 13 #include "content/browser/download/drag_download_util.h" |
14 #include "content/browser/power_save_blocker.h" | 14 #include "content/browser/power_save_blocker.h" |
15 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | |
16 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "content/browser/web_contents/web_contents_impl.h" |
17 #include "content/public/browser/content_browser_client.h" | 16 #include "content/public/browser/content_browser_client.h" |
18 #include "content/public/common/content_client.h" | 17 #include "content/public/common/content_client.h" |
19 #include "content/public/test/download_test_observer.h" | 18 #include "content/public/test/download_test_observer.h" |
20 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
21 #include "content/shell/shell.h" | 20 #include "content/shell/shell.h" |
22 #include "content/shell/shell_browser_context.h" | 21 #include "content/shell/shell_browser_context.h" |
23 #include "content/shell/shell_download_manager_delegate.h" | 22 #include "content/shell/shell_download_manager_delegate.h" |
24 #include "content/test/content_browser_test.h" | 23 #include "content/test/content_browser_test.h" |
25 #include "content/test/content_browser_test_utils.h" | 24 #include "content/test/content_browser_test_utils.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 this, &DragDownloadFileTest::Succeed)); | 130 this, &DragDownloadFileTest::Succeed)); |
132 ON_CALL(*observer, OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( | 131 ON_CALL(*observer, OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( |
133 this, &DragDownloadFileTest::FailFast)); | 132 this, &DragDownloadFileTest::FailFast)); |
134 file->Start(observer); | 133 file->Start(observer); |
135 RunMessageLoop(); | 134 RunMessageLoop(); |
136 } | 135 } |
137 | 136 |
138 // TODO(benjhayden): Test Stop(). | 137 // TODO(benjhayden): Test Stop(). |
139 | 138 |
140 } // namespace content | 139 } // namespace content |
OLD | NEW |