Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: webkit/browser/fileapi/async_file_test_helper.cc

Issue 16010007: Move webkit/quota files to webkit/browser/quota or webkit/common/quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "webkit/browser/fileapi/async_file_test_helper.h" 8 #include "webkit/browser/fileapi/async_file_test_helper.h"
9 #include "webkit/browser/fileapi/file_system_context.h" 9 #include "webkit/browser/fileapi/file_system_context.h"
10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" 10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
11 #include "webkit/browser/fileapi/file_system_url.h" 11 #include "webkit/browser/fileapi/file_system_url.h"
12 #include "webkit/browser/quota/quota_manager.h"
12 #include "webkit/common/fileapi/file_system_util.h" 13 #include "webkit/common/fileapi/file_system_util.h"
13 #include "webkit/quota/quota_manager.h"
14 14
15 namespace fileapi { 15 namespace fileapi {
16 16
17 namespace { 17 namespace {
18 18
19 typedef FileSystemOperation::FileEntryList FileEntryList; 19 typedef FileSystemOperation::FileEntryList FileEntryList;
20 20
21 void AssignAndQuit(base::RunLoop* run_loop, 21 void AssignAndQuit(base::RunLoop* run_loop,
22 base::PlatformFileError* result_out, 22 base::PlatformFileError* result_out,
23 base::PlatformFileError result) { 23 base::PlatformFileError result) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown; 226 quota::QuotaStatusCode status = quota::kQuotaStatusUnknown;
227 quota_manager->GetUsageAndQuota( 227 quota_manager->GetUsageAndQuota(
228 origin, 228 origin,
229 FileSystemTypeToQuotaStorageType(type), 229 FileSystemTypeToQuotaStorageType(type),
230 base::Bind(&DidGetUsageAndQuota, &status, usage, quota)); 230 base::Bind(&DidGetUsageAndQuota, &status, usage, quota));
231 base::MessageLoop::current()->RunUntilIdle(); 231 base::MessageLoop::current()->RunUntilIdle();
232 return status; 232 return status;
233 } 233 }
234 234
235 } // namespace fileapi 235 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/async_file_test_helper.h ('k') | webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698