| OLD | NEW |
| 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 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 5 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_callback_factory.h" | 13 #include "base/memory/scoped_callback_factory.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_temp_dir.h" | |
| 16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 17 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
| 17 #include "base/scoped_temp_dir.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "webkit/fileapi/file_system_path_manager.h" | 20 #include "webkit/fileapi/file_system_path_manager.h" |
| 21 #include "webkit/fileapi/file_system_util.h" | 21 #include "webkit/fileapi/file_system_util.h" |
| 22 | 22 |
| 23 namespace fileapi { | 23 namespace fileapi { |
| 24 | 24 |
| 25 class MockFileSystemPathManager : public FileSystemPathManager { | 25 class MockFileSystemPathManager : public FileSystemPathManager { |
| 26 public: | 26 public: |
| 27 MockFileSystemPathManager(const FilePath& filesystem_path) | 27 MockFileSystemPathManager(const FilePath& filesystem_path) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ASSERT_TRUE(persistent_set.find(current) != persistent_set.end()); | 100 ASSERT_TRUE(persistent_set.find(current) != persistent_set.end()); |
| 101 ++persistent_actual_size; | 101 ++persistent_actual_size; |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 ASSERT_EQ(temporary_size, temporary_actual_size); | 105 ASSERT_EQ(temporary_size, temporary_actual_size); |
| 106 ASSERT_EQ(persistent_size, persistent_actual_size); | 106 ASSERT_EQ(persistent_size, persistent_actual_size); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace fileapi | 109 } // namespace fileapi |
| OLD | NEW |