OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/file_system/copy_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/task_runner_util.h" | 8 #include "base/task_runner_util.h" |
9 #include "chrome/browser/chromeos/drive/file_cache.h" | 9 #include "chrome/browser/chromeos/drive/file_cache.h" |
10 #include "chrome/browser/chromeos/drive/file_change.h" | 10 #include "chrome/browser/chromeos/drive/file_change.h" |
11 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 11 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
13 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 13 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
14 #include "chrome/browser/drive/drive_api_util.h" | 14 #include "components/drive/drive_api_util.h" |
15 #include "chrome/browser/drive/fake_drive_service.h" | 15 #include "components/drive/service/fake_drive_service.h" |
16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
17 #include "google_apis/drive/drive_api_parser.h" | 17 #include "google_apis/drive/drive_api_parser.h" |
18 #include "google_apis/drive/test_util.h" | 18 #include "google_apis/drive/test_util.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace drive { | 21 namespace drive { |
22 namespace file_system { | 22 namespace file_system { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 pending_callback.Run(FILE_ERROR_OK); | 508 pending_callback.Run(FILE_ERROR_OK); |
509 content::RunAllBlockingPoolTasksUntilIdle(); | 509 content::RunAllBlockingPoolTasksUntilIdle(); |
510 | 510 |
511 EXPECT_EQ(FILE_ERROR_OK, copy_error); | 511 EXPECT_EQ(FILE_ERROR_OK, copy_error); |
512 ResourceEntry entry; | 512 ResourceEntry entry; |
513 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(dest_path, &entry)); | 513 EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(dest_path, &entry)); |
514 } | 514 } |
515 | 515 |
516 } // namespace file_system | 516 } // namespace file_system |
517 } // namespace drive | 517 } // namespace drive |
OLD | NEW |