| 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 <set> | 5 #include <set> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "webkit/browser/fileapi/external_mount_points.h" |
| 22 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 23 #include "webkit/browser/fileapi/mock_file_system_options.h" |
| 21 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 24 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
| 22 #include "webkit/fileapi/external_mount_points.h" | |
| 23 #include "webkit/fileapi/file_system_context.h" | 25 #include "webkit/fileapi/file_system_context.h" |
| 24 #include "webkit/fileapi/file_system_task_runners.h" | |
| 25 #include "webkit/fileapi/file_system_url.h" | 26 #include "webkit/fileapi/file_system_url.h" |
| 26 #include "webkit/fileapi/file_system_util.h" | 27 #include "webkit/fileapi/file_system_util.h" |
| 27 #include "webkit/fileapi/mock_file_system_options.h" | |
| 28 #include "webkit/quota/mock_special_storage_policy.h" | 28 #include "webkit/quota/mock_special_storage_policy.h" |
| 29 | 29 |
| 30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
| 31 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" | 31 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 namespace fileapi { | 34 namespace fileapi { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 kRootPathFileURITestCases[i].type, | 299 kRootPathFileURITestCases[i].type, |
| 300 true /* create */, &root_path)); | 300 true /* create */, &root_path)); |
| 301 base::FilePath expected = file_system_path().AppendASCII( | 301 base::FilePath expected = file_system_path().AppendASCII( |
| 302 kRootPathFileURITestCases[i].expected_path); | 302 kRootPathFileURITestCases[i].expected_path); |
| 303 EXPECT_EQ(expected.value(), root_path.value()); | 303 EXPECT_EQ(expected.value(), root_path.value()); |
| 304 EXPECT_TRUE(file_util::DirectoryExists(root_path)); | 304 EXPECT_TRUE(file_util::DirectoryExists(root_path)); |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 } // namespace fileapi | 308 } // namespace fileapi |
| OLD | NEW |