| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "chrome/browser/android/download/mock_download_controller_android.h" | 5 #include "chrome/browser/android/download/mock_download_controller_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 | 10 |
| 11 using content::DownloadControllerAndroid; | 11 using content::DownloadControllerAndroid; |
| 12 | 12 |
| 13 namespace chrome { | 13 namespace chrome { |
| 14 namespace android { | 14 namespace android { |
| 15 | 15 |
| 16 MockDownloadControllerAndroid::MockDownloadControllerAndroid() | 16 MockDownloadControllerAndroid::MockDownloadControllerAndroid() |
| 17 : approve_file_access_request_(true) { | 17 : approve_file_access_request_(true) { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 FROM_HERE, base::Bind(cb, approve_file_access_request_)); | 46 FROM_HERE, base::Bind(cb, approve_file_access_request_)); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void MockDownloadControllerAndroid::SetApproveFileAccessRequestForTesting( | 49 void MockDownloadControllerAndroid::SetApproveFileAccessRequestForTesting( |
| 50 bool approve) { | 50 bool approve) { |
| 51 approve_file_access_request_ = approve; | 51 approve_file_access_request_ = approve; |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace android | 54 } // namespace android |
| 55 } // namespace chrome | 55 } // namespace chrome |
| OLD | NEW |