| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "net/base/data_url.h" | 43 #include "net/base/data_url.h" |
| 44 #include "net/base/net_util.h" | 44 #include "net/base/net_util.h" |
| 45 #include "net/url_request/url_request.h" | 45 #include "net/url_request/url_request.h" |
| 46 #include "net/url_request/url_request_context.h" | 46 #include "net/url_request/url_request_context.h" |
| 47 #include "net/url_request/url_request_job.h" | 47 #include "net/url_request/url_request_job.h" |
| 48 #include "net/url_request/url_request_job_factory.h" | 48 #include "net/url_request/url_request_job_factory.h" |
| 49 #include "net/url_request/url_request_job_factory_impl.h" | 49 #include "net/url_request/url_request_job_factory_impl.h" |
| 50 #include "webkit/blob/blob_data.h" | 50 #include "webkit/blob/blob_data.h" |
| 51 #include "webkit/blob/blob_storage_controller.h" | 51 #include "webkit/blob/blob_storage_controller.h" |
| 52 #include "webkit/blob/blob_url_request_job.h" | 52 #include "webkit/blob/blob_url_request_job.h" |
| 53 #include "webkit/common/fileapi/file_system_url.h" |
| 53 #include "webkit/fileapi/file_system_context.h" | 54 #include "webkit/fileapi/file_system_context.h" |
| 54 #include "webkit/fileapi/file_system_operation.h" | 55 #include "webkit/fileapi/file_system_operation.h" |
| 55 #include "webkit/fileapi/file_system_url.h" | |
| 56 | 56 |
| 57 using content::BrowserContext; | 57 using content::BrowserContext; |
| 58 using content::BrowserThread; | 58 using content::BrowserThread; |
| 59 using content::DownloadItem; | 59 using content::DownloadItem; |
| 60 using content::DownloadManager; | 60 using content::DownloadManager; |
| 61 using content::URLRequestSlowDownloadJob; | 61 using content::URLRequestSlowDownloadJob; |
| 62 | 62 |
| 63 namespace events = extensions::event_names; | 63 namespace events = extensions::event_names; |
| 64 | 64 |
| 65 namespace { | 65 namespace { |
| (...skipping 3413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3479 DownloadsApiTest() {} | 3479 DownloadsApiTest() {} |
| 3480 virtual ~DownloadsApiTest() {} | 3480 virtual ~DownloadsApiTest() {} |
| 3481 private: | 3481 private: |
| 3482 DISALLOW_COPY_AND_ASSIGN(DownloadsApiTest); | 3482 DISALLOW_COPY_AND_ASSIGN(DownloadsApiTest); |
| 3483 }; | 3483 }; |
| 3484 | 3484 |
| 3485 | 3485 |
| 3486 IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DownloadsApiTest) { | 3486 IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DownloadsApiTest) { |
| 3487 ASSERT_TRUE(RunExtensionTest("downloads")) << message_; | 3487 ASSERT_TRUE(RunExtensionTest("downloads")) << message_; |
| 3488 } | 3488 } |
| OLD | NEW |