OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/fileapi/file_system_backend.h" | 5 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "chromeos/dbus/cros_disks_client.h" | 11 #include "chromeos/dbus/cros_disks_client.h" |
12 #include "content/public/test/mock_special_storage_policy.h" | 12 #include "content/public/test/mock_special_storage_policy.h" |
| 13 #include "storage/browser/fileapi/external_mount_points.h" |
| 14 #include "storage/browser/fileapi/file_system_url.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "url/url_util.h" | 16 #include "url/url_util.h" |
15 #include "webkit/browser/fileapi/external_mount_points.h" | |
16 #include "webkit/browser/fileapi/file_system_url.h" | |
17 | 17 |
18 #define FPL(x) FILE_PATH_LITERAL(x) | 18 #define FPL(x) FILE_PATH_LITERAL(x) |
19 | 19 |
20 using storage::ExternalMountPoints; | 20 using storage::ExternalMountPoints; |
21 using storage::FileSystemURL; | 21 using storage::FileSystemURL; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 FileSystemURL CreateFileSystemURL(const std::string& extension, | 25 FileSystemURL CreateFileSystemURL(const std::string& extension, |
26 const char* path, | 26 const char* path, |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 if (!kTestCases[i].success) | 271 if (!kTestCases[i].success) |
272 continue; | 272 continue; |
273 | 273 |
274 base::FilePath expected_virtual_path(kTestCases[i].virtual_path); | 274 base::FilePath expected_virtual_path(kTestCases[i].virtual_path); |
275 EXPECT_EQ(expected_virtual_path, virtual_path) | 275 EXPECT_EQ(expected_virtual_path, virtual_path) |
276 << "Resolving " << kTestCases[i].local_path; | 276 << "Resolving " << kTestCases[i].local_path; |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 } // namespace | 280 } // namespace |
OLD | NEW |