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

Side by Side Diff: webkit/browser/fileapi/local_file_system_operation_unittest.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) 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 "webkit/browser/fileapi/local_file_system_operation.h" 5 #include "webkit/browser/fileapi/local_file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "webkit/browser/fileapi/async_file_test_helper.h" 17 #include "webkit/browser/fileapi/async_file_test_helper.h"
18 #include "webkit/browser/fileapi/file_system_context.h" 18 #include "webkit/browser/fileapi/file_system_context.h"
19 #include "webkit/browser/fileapi/file_system_file_util.h" 19 #include "webkit/browser/fileapi/file_system_file_util.h"
20 #include "webkit/browser/fileapi/file_system_operation_context.h" 20 #include "webkit/browser/fileapi/file_system_operation_context.h"
21 #include "webkit/browser/fileapi/mock_file_change_observer.h" 21 #include "webkit/browser/fileapi/mock_file_change_observer.h"
22 #include "webkit/browser/fileapi/sandbox_file_system_test_helper.h" 22 #include "webkit/browser/fileapi/sandbox_file_system_test_helper.h"
23 #include "webkit/browser/quota/mock_quota_manager.h"
24 #include "webkit/browser/quota/quota_manager.h"
23 #include "webkit/common/blob/shareable_file_reference.h" 25 #include "webkit/common/blob/shareable_file_reference.h"
24 #include "webkit/common/fileapi/file_system_util.h" 26 #include "webkit/common/fileapi/file_system_util.h"
25 #include "webkit/quota/mock_quota_manager.h"
26 #include "webkit/quota/quota_manager.h"
27 27
28 using quota::QuotaManager; 28 using quota::QuotaManager;
29 using quota::QuotaManagerProxy; 29 using quota::QuotaManagerProxy;
30 using webkit_blob::ShareableFileReference; 30 using webkit_blob::ShareableFileReference;
31 31
32 namespace fileapi { 32 namespace fileapi {
33 33
34 namespace { 34 namespace {
35 35
36 const int kFileOperationStatusNotSet = 1; 36 const int kFileOperationStatusNotSet = 1;
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 base::MessageLoop::current()->RunUntilIdle(); 1180 base::MessageLoop::current()->RunUntilIdle();
1181 1181
1182 expected_usage += grandchild_file_size + grandchild_path_cost; 1182 expected_usage += grandchild_file_size + grandchild_path_cost;
1183 usage = GetUsage(); 1183 usage = GetUsage();
1184 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, 1184 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size,
1185 GetDataSizeOnDisk()); 1185 GetDataSizeOnDisk());
1186 EXPECT_EQ(expected_usage, usage); 1186 EXPECT_EQ(expected_usage, usage);
1187 } 1187 }
1188 1188
1189 } // namespace fileapi 1189 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698