OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/drive/download_handler.h" | 5 #include "chrome/browser/chromeos/drive/download_handler.h" |
6 | 6 |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "chrome/browser/chromeos/drive/dummy_file_system.h" | 8 #include "chrome/browser/chromeos/drive/dummy_file_system.h" |
| 9 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
9 #include "chrome/browser/chromeos/drive/file_system_util.h" | 10 #include "chrome/browser/chromeos/drive/file_system_util.h" |
10 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
11 #include "content/public/test/mock_download_item.h" | 12 #include "content/public/test/mock_download_item.h" |
12 #include "content/public/test/mock_download_manager.h" | 13 #include "content/public/test/mock_download_manager.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 14 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
15 #include "google_apis/drive/test_util.h" | 16 #include "google_apis/drive/test_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 namespace drive { | 19 namespace drive { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 download_handler_->CheckForFileExistence( | 190 download_handler_->CheckForFileExistence( |
190 &download_item_, | 191 &download_item_, |
191 google_apis::test_util::CreateCopyResultCallback(&file_exists)); | 192 google_apis::test_util::CreateCopyResultCallback(&file_exists)); |
192 content::RunAllBlockingPoolTasksUntilIdle(); | 193 content::RunAllBlockingPoolTasksUntilIdle(); |
193 | 194 |
194 // Check the result. | 195 // Check the result. |
195 EXPECT_FALSE(file_exists); | 196 EXPECT_FALSE(file_exists); |
196 } | 197 } |
197 | 198 |
198 } // namespace drive | 199 } // namespace drive |
OLD | NEW |