| 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 "storage/browser/test/async_file_test_helper.h" |
| 6 |
| 5 #include "base/bind.h" | 7 #include "base/bind.h" |
| 6 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 9 #include "content/public/test/async_file_test_helper.h" | |
| 10 #include "storage/browser/fileapi/file_system_backend.h" | 11 #include "storage/browser/fileapi/file_system_backend.h" |
| 11 #include "storage/browser/fileapi/file_system_context.h" | 12 #include "storage/browser/fileapi/file_system_context.h" |
| 12 #include "storage/browser/fileapi/file_system_operation_runner.h" | 13 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 13 #include "storage/browser/fileapi/file_system_url.h" | 14 #include "storage/browser/fileapi/file_system_url.h" |
| 14 #include "storage/browser/quota/quota_manager.h" | 15 #include "storage/browser/quota/quota_manager.h" |
| 15 #include "storage/common/fileapi/file_system_util.h" | 16 #include "storage/common/fileapi/file_system_util.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 storage::QuotaStatusCode status = storage::kQuotaStatusUnknown; | 264 storage::QuotaStatusCode status = storage::kQuotaStatusUnknown; |
| 264 quota_manager->GetUsageAndQuota( | 265 quota_manager->GetUsageAndQuota( |
| 265 origin, | 266 origin, |
| 266 FileSystemTypeToQuotaStorageType(type), | 267 FileSystemTypeToQuotaStorageType(type), |
| 267 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); | 268 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); |
| 268 base::RunLoop().RunUntilIdle(); | 269 base::RunLoop().RunUntilIdle(); |
| 269 return status; | 270 return status; |
| 270 } | 271 } |
| 271 | 272 |
| 272 } // namespace content | 273 } // namespace content |
| OLD | NEW |