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/file_system_url.h" | 5 #include "webkit/browser/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/browser/fileapi/syncable/syncable_file_system_util.h" |
10 #include "webkit/common/fileapi/file_system_types.h" | 11 #include "webkit/common/fileapi/file_system_types.h" |
11 #include "webkit/common/fileapi/file_system_util.h" | 12 #include "webkit/common/fileapi/file_system_util.h" |
12 #include "webkit/fileapi/syncable/syncable_file_system_util.h" | |
13 | 13 |
14 #define FPL FILE_PATH_LITERAL | 14 #define FPL FILE_PATH_LITERAL |
15 | 15 |
16 #if defined(FILE_PATH_USES_DRIVE_LETTERS) | 16 #if defined(FILE_PATH_USES_DRIVE_LETTERS) |
17 #define DRIVE FPL("C:") | 17 #define DRIVE FPL("C:") |
18 #else | 18 #else |
19 #define DRIVE FPL("/a/") | 19 #define DRIVE FPL("/a/") |
20 #endif | 20 #endif |
21 | 21 |
22 namespace fileapi { | 22 namespace fileapi { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 base::FilePath::FromUTF8Unsafe("a")); | 186 base::FilePath::FromUTF8Unsafe("a")); |
187 | 187 |
188 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_a)); | 188 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_a)); |
189 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_b)); | 189 EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_b)); |
190 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_foo_perm_a)); | 190 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_foo_perm_a)); |
191 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_temp_a)); | 191 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_temp_a)); |
192 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_perm_a)); | 192 EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_perm_a)); |
193 } | 193 } |
194 | 194 |
195 } // namespace fileapi | 195 } // namespace fileapi |
OLD | NEW |