| 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/sandbox_mount_point_provider.h" | 5 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.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/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.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/file_system_mount_point_provider.h" | 17 #include "webkit/browser/fileapi/file_system_backend.h" |
| 18 #include "webkit/browser/fileapi/file_system_url.h" | 18 #include "webkit/browser/fileapi/file_system_url.h" |
| 19 #include "webkit/browser/fileapi/mock_file_system_options.h" | 19 #include "webkit/browser/fileapi/mock_file_system_options.h" |
| 20 #include "webkit/common/fileapi/file_system_util.h" | 20 #include "webkit/common/fileapi/file_system_util.h" |
| 21 | 21 |
| 22 // PS stands for path separator. | 22 // PS stands for path separator. |
| 23 #if defined(FILE_PATH_USES_WIN_SEPARATORS) | 23 #if defined(FILE_PATH_USES_WIN_SEPARATORS) |
| 24 #define PS "\\" | 24 #define PS "\\" |
| 25 #else | 25 #else |
| 26 #define PS "/" | 26 #define PS "/" |
| 27 #endif | 27 #endif |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, | 348 OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, |
| 349 &root_path)); | 349 &root_path)); |
| 350 base::FilePath expected = file_system_path().AppendASCII( | 350 base::FilePath expected = file_system_path().AppendASCII( |
| 351 kRootPathFileURITestCases[i].expected_path); | 351 kRootPathFileURITestCases[i].expected_path); |
| 352 EXPECT_EQ(expected.value(), root_path.value()); | 352 EXPECT_EQ(expected.value(), root_path.value()); |
| 353 EXPECT_TRUE(file_util::DirectoryExists(root_path)); | 353 EXPECT_TRUE(file_util::DirectoryExists(root_path)); |
| 354 } | 354 } |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace fileapi | 357 } // namespace fileapi |
| OLD | NEW |