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

Side by Side Diff: webkit/fileapi/file_system_quota_unittest.cc

Issue 9032010: base::Bind: Remove scoped_callback_factory.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This test checks the entire behavior of FileSystem usage and quota, such as: 5 // This test checks the entire behavior of FileSystem usage and quota, such as:
6 // 1) the actual size of files on disk, 6 // 1) the actual size of files on disk,
7 // 2) the described size in .usage, and 7 // 2) the described size in .usage, and
8 // 3) the result of QuotaManager::GetUsageAndQuota. 8 // 3) the result of QuotaManager::GetUsageAndQuota.
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_callback_factory.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 14 #include "base/message_loop.h"
16 #include "base/platform_file.h" 15 #include "base/platform_file.h"
17 #include "base/scoped_temp_dir.h" 16 #include "base/scoped_temp_dir.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 #include "webkit/fileapi/file_system_callback_dispatcher.h" 18 #include "webkit/fileapi/file_system_callback_dispatcher.h"
20 #include "webkit/fileapi/file_system_operation.h" 19 #include "webkit/fileapi/file_system_operation.h"
21 #include "webkit/fileapi/file_system_test_helper.h" 20 #include "webkit/fileapi/file_system_test_helper.h"
22 #include "webkit/fileapi/file_system_usage_cache.h" 21 #include "webkit/fileapi/file_system_usage_cache.h"
23 #include "webkit/fileapi/file_system_util.h" 22 #include "webkit/fileapi/file_system_util.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 328
330 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, ActualSize()); 329 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, ActualSize());
331 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, SizeInUsageFile()); 330 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, SizeInUsageFile());
332 GetUsageAndQuotaFromQuotaManager(); 331 GetUsageAndQuotaFromQuotaManager();
333 EXPECT_EQ(quota::kQuotaStatusOk, quota_status()); 332 EXPECT_EQ(quota::kQuotaStatusOk, quota_status());
334 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, usage()); 333 EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, usage());
335 ASSERT_LT(2 * child_file_size + 3 * grandchild_file_size, quota()); 334 ASSERT_LT(2 * child_file_size + 3 * grandchild_file_size, quota());
336 } 335 }
337 336
338 } // namespace fileapi 337 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_path_manager.cc ('k') | webkit/fileapi/sandbox_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698