| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/fileapi/file_system_util.h" | 5 #include "storage/common/fileapi/file_system_util.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| 11 using storage::CrackIsolatedFileSystemName; | 11 using storage::CrackIsolatedFileSystemName; |
| 12 using storage::GetExternalFileSystemRootURIString; | 12 using storage::GetExternalFileSystemRootURIString; |
| 13 using storage::GetIsolatedFileSystemName; | 13 using storage::GetIsolatedFileSystemName; |
| 14 using storage::GetIsolatedFileSystemRootURIString; | 14 using storage::GetIsolatedFileSystemRootURIString; |
| 15 using storage::ValidateIsolatedFileSystemId; | 15 using storage::ValidateIsolatedFileSystemId; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // Percents must be escaped, otherwise they will be unintentionally unescaped. | 298 // Percents must be escaped, otherwise they will be unintentionally unescaped. |
| 299 const std::string kMountName = "X%20Y"; | 299 const std::string kMountName = "X%20Y"; |
| 300 | 300 |
| 301 const std::string url_string = | 301 const std::string url_string = |
| 302 GetExternalFileSystemRootURIString(kOriginURL, kMountName); | 302 GetExternalFileSystemRootURIString(kOriginURL, kMountName); |
| 303 EXPECT_EQ("filesystem:http://foo/external/X%2520Y/", url_string); | 303 EXPECT_EQ("filesystem:http://foo/external/X%2520Y/", url_string); |
| 304 } | 304 } |
| 305 | 305 |
| 306 } // namespace | 306 } // namespace |
| 307 } // namespace content | 307 } // namespace content |
| OLD | NEW |