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/sync/remove_performer.h" | 5 #include "chrome/browser/chromeos/drive/sync/remove_performer.h" |
6 | 6 |
7 #include "base/task_runner_util.h" | 7 #include "base/task_runner_util.h" |
8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
9 #include "chrome/browser/chromeos/drive/file_system_interface.h" | |
10 #include "chrome/browser/chromeos/drive/file_system_util.h" | 9 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 10 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 11 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
11 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "chrome/browser/drive/fake_drive_service.h" |
12 #include "google_apis/drive/gdata_wapi_parser.h" | 13 #include "google_apis/drive/gdata_wapi_parser.h" |
13 #include "google_apis/drive/test_util.h" | 14 #include "google_apis/drive/test_util.h" |
14 | 15 |
15 namespace drive { | 16 namespace drive { |
16 namespace internal { | 17 namespace internal { |
17 | 18 |
18 typedef file_system::OperationTestBase RemovePerformerTest; | 19 typedef file_system::OperationTestBase RemovePerformerTest; |
19 | 20 |
20 TEST_F(RemovePerformerTest, RemoveFile) { | 21 TEST_F(RemovePerformerTest, RemoveFile) { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Remove the entry. | 142 // Remove the entry. |
142 performer.Remove(local_id, ClientContext(USER_INITIATED), | 143 performer.Remove(local_id, ClientContext(USER_INITIATED), |
143 google_apis::test_util::CreateCopyResultCallback(&error)); | 144 google_apis::test_util::CreateCopyResultCallback(&error)); |
144 test_util::RunBlockingPoolTask(); | 145 test_util::RunBlockingPoolTask(); |
145 EXPECT_EQ(FILE_ERROR_OK, error); | 146 EXPECT_EQ(FILE_ERROR_OK, error); |
146 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry)); | 147 EXPECT_EQ(FILE_ERROR_NOT_FOUND, GetLocalResourceEntryById(local_id, &entry)); |
147 } | 148 } |
148 | 149 |
149 } // namespace internal | 150 } // namespace internal |
150 } // namespace drive | 151 } // namespace drive |
OLD | NEW |