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" |
7 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
8 #include "content/browser/download/download_file_factory.h" | 7 #include "content/browser/download/download_file_factory.h" |
9 #include "content/browser/download/download_file_impl.h" | 8 #include "content/browser/download/download_file_impl.h" |
10 #include "content/browser/download/download_item_impl.h" | 9 #include "content/browser/download/download_item_impl.h" |
11 #include "content/browser/download/download_manager_impl.h" | 10 #include "content/browser/download/download_manager_impl.h" |
12 #include "content/browser/download/drag_download_file.h" | 11 #include "content/browser/download/drag_download_file.h" |
13 #include "content/browser/download/drag_download_util.h" | 12 #include "content/browser/download/drag_download_util.h" |
14 #include "content/browser/web_contents/web_contents_impl.h" | 13 #include "content/browser/web_contents/web_contents_impl.h" |
15 #include "content/public/browser/content_browser_client.h" | 14 #include "content/public/browser/content_browser_client.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 this, &DragDownloadFileTest::Succeed)); | 125 this, &DragDownloadFileTest::Succeed)); |
127 ON_CALL(*observer, OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( | 126 ON_CALL(*observer, OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( |
128 this, &DragDownloadFileTest::FailFast)); | 127 this, &DragDownloadFileTest::FailFast)); |
129 file->Start(observer); | 128 file->Start(observer); |
130 RunMessageLoop(); | 129 RunMessageLoop(); |
131 } | 130 } |
132 | 131 |
133 // TODO(benjhayden): Test Stop(). | 132 // TODO(benjhayden): Test Stop(). |
134 | 133 |
135 } // namespace content | 134 } // namespace content |
OLD | NEW |