OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/file_task_executor.h" | 5 #include "chrome/browser/chromeos/drive/file_task_executor.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "chrome/browser/chromeos/drive/fake_file_system.h" | 11 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
12 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "components/drive/service/fake_drive_service.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "google_apis/drive/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
15 #include "google_apis/drive/test_util.h" | 15 #include "google_apis/drive/test_util.h" |
16 #include "storage/browser/fileapi/file_system_url.h" | 16 #include "storage/browser/fileapi/file_system_url.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace drive { | 19 namespace drive { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 extensions::api::file_manager_private::TASK_RESULT_NONE; | 143 extensions::api::file_manager_private::TASK_RESULT_NONE; |
144 executor->Execute(urls, | 144 executor->Execute(urls, |
145 google_apis::test_util::CreateCopyResultCallback(&result)); | 145 google_apis::test_util::CreateCopyResultCallback(&result)); |
146 base::RunLoop().RunUntilIdle(); | 146 base::RunLoop().RunUntilIdle(); |
147 | 147 |
148 EXPECT_EQ(extensions::api::file_manager_private::TASK_RESULT_FAILED, result); | 148 EXPECT_EQ(extensions::api::file_manager_private::TASK_RESULT_FAILED, result); |
149 ASSERT_TRUE(opend_urls.empty()); | 149 ASSERT_TRUE(opend_urls.empty()); |
150 } | 150 } |
151 | 151 |
152 } // namespace drive | 152 } // namespace drive |
OLD | NEW |