| 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 "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/message_loop.h" | 
|    14 #include "base/strings/stringprintf.h" |    14 #include "base/strings/stringprintf.h" | 
|    15 #include "testing/gtest/include/gtest/gtest.h" |    15 #include "testing/gtest/include/gtest/gtest.h" | 
|    16 #include "url/gurl.h" |    16 #include "url/gurl.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/file_system_operation_runner.h" |    21 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 
|    22 #include "webkit/browser/fileapi/mock_file_change_observer.h" |    22 #include "webkit/browser/fileapi/mock_file_change_observer.h" | 
|    23 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |    23 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1175   base::MessageLoop::current()->RunUntilIdle(); |  1175   base::MessageLoop::current()->RunUntilIdle(); | 
|  1176  |  1176  | 
|  1177   expected_usage += grandchild_file_size + grandchild_path_cost; |  1177   expected_usage += grandchild_file_size + grandchild_path_cost; | 
|  1178   usage = GetUsage(); |  1178   usage = GetUsage(); | 
|  1179   EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, |  1179   EXPECT_EQ(2 * child_file_size + 3 * grandchild_file_size, | 
|  1180             GetDataSizeOnDisk()); |  1180             GetDataSizeOnDisk()); | 
|  1181   EXPECT_EQ(expected_usage, usage); |  1181   EXPECT_EQ(expected_usage, usage); | 
|  1182 } |  1182 } | 
|  1183  |  1183  | 
|  1184 }  // namespace fileapi |  1184 }  // namespace fileapi | 
| OLD | NEW |