| 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/fileapi/file_system_url.h" | 5 #include "webkit/fileapi/file_system_url.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "webkit/fileapi/external_mount_points.h" | 10 #include "webkit/browser/fileapi/external_mount_points.h" |
| 11 #include "webkit/browser/fileapi/isolated_context.h" |
| 11 #include "webkit/fileapi/file_system_types.h" | 12 #include "webkit/fileapi/file_system_types.h" |
| 12 #include "webkit/fileapi/file_system_util.h" | 13 #include "webkit/fileapi/file_system_util.h" |
| 13 #include "webkit/fileapi/isolated_context.h" | |
| 14 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | 14 #include "webkit/fileapi/syncable/syncable_file_system_util.h" |
| 15 | 15 |
| 16 #define FPL FILE_PATH_LITERAL | 16 #define FPL FILE_PATH_LITERAL |
| 17 | 17 |
| 18 #if defined(FILE_PATH_USES_DRIVE_LETTERS) | 18 #if defined(FILE_PATH_USES_DRIVE_LETTERS) |
| 19 #define DRIVE FPL("C:") | 19 #define DRIVE FPL("C:") |
| 20 #else | 20 #else |
| 21 #define DRIVE FPL("/a/") | 21 #define DRIVE FPL("/a/") |
| 22 #endif | 22 #endif |
| 23 | 23 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 kFileSystemTypeExternal, | 203 kFileSystemTypeExternal, |
| 204 scoped_fs.GetVirtualRootPath().Append(kPath))); | 204 scoped_fs.GetVirtualRootPath().Append(kPath))); |
| 205 EXPECT_EQ("filesystem:http://example.com/external/" + | 205 EXPECT_EQ("filesystem:http://example.com/external/" + |
| 206 NormalizedUTF8Path(scoped_fs.GetVirtualRootPath().Append(kPath)) + | 206 NormalizedUTF8Path(scoped_fs.GetVirtualRootPath().Append(kPath)) + |
| 207 " (NativeLocal@foo:" + | 207 " (NativeLocal@foo:" + |
| 208 NormalizedUTF8Path(kRoot.Append(kPath)) + ")", | 208 NormalizedUTF8Path(kRoot.Append(kPath)) + ")", |
| 209 kURL2.DebugString()); | 209 kURL2.DebugString()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace fileapi | 212 } // namespace fileapi |
| OLD | NEW |