OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/drive_test_util.h" | 5 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 feed_list, | 222 feed_list, |
223 is_delta_feed, | 223 is_delta_feed, |
224 root_feed_changestamp, | 224 root_feed_changestamp, |
225 base::Bind(&base::DoNothing)); | 225 base::Bind(&base::DoNothing)); |
226 // ChangeListLoader::UpdateFromFeed is asynchronous, so wait for it to finish. | 226 // ChangeListLoader::UpdateFromFeed is asynchronous, so wait for it to finish. |
227 google_apis::test_util::RunBlockingPoolTask(); | 227 google_apis::test_util::RunBlockingPoolTask(); |
228 | 228 |
229 return true; | 229 return true; |
230 } | 230 } |
231 | 231 |
232 void DeleteDriveCache(DriveCache* drive_cache) { | |
233 DCHECK(drive_cache); | |
234 drive_cache->Destroy(); | |
235 // The cache destruction requires to post a task to the blocking pool. | |
236 google_apis::test_util::RunBlockingPoolTask(); | |
237 } | |
238 | |
239 } // namespace test_util | 232 } // namespace test_util |
240 } // namespace drive | 233 } // namespace drive |
OLD | NEW |