OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "webkit/browser/chromeos/fileapi/cros_mount_point_provider.h" | 5 #include "webkit/browser/chromeos/fileapi/cros_mount_point_provider.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 "chromeos/dbus/cros_disks_client.h" | 10 #include "chromeos/dbus/cros_disks_client.h" |
11 #include "googleurl/src/url_util.h" | 11 #include "googleurl/src/url_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "webkit/browser/fileapi/external_mount_points.h" | 13 #include "webkit/browser/fileapi/external_mount_points.h" |
14 #include "webkit/browser/fileapi/file_permission_policy.h" | 14 #include "webkit/browser/fileapi/file_permission_policy.h" |
15 #include "webkit/browser/fileapi/file_system_url.h" | 15 #include "webkit/browser/fileapi/file_system_url.h" |
16 #include "webkit/browser/fileapi/isolated_context.h" | 16 #include "webkit/browser/fileapi/isolated_context.h" |
17 #include "webkit/quota/mock_special_storage_policy.h" | 17 #include "webkit/browser/quota/mock_special_storage_policy.h" |
18 | 18 |
19 #define FPL(x) FILE_PATH_LITERAL(x) | 19 #define FPL(x) FILE_PATH_LITERAL(x) |
20 | 20 |
21 using fileapi::ExternalMountPoints; | 21 using fileapi::ExternalMountPoints; |
22 using fileapi::FileSystemURL; | 22 using fileapi::FileSystemURL; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 FileSystemURL CreateFileSystemURL(const std::string& extension, | 26 FileSystemURL CreateFileSystemURL(const std::string& extension, |
27 const char* path, | 27 const char* path, |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 if (!kTestCases[i].success) | 295 if (!kTestCases[i].success) |
296 continue; | 296 continue; |
297 | 297 |
298 base::FilePath expected_virtual_path(kTestCases[i].virtual_path); | 298 base::FilePath expected_virtual_path(kTestCases[i].virtual_path); |
299 EXPECT_EQ(expected_virtual_path, virtual_path) | 299 EXPECT_EQ(expected_virtual_path, virtual_path) |
300 << "Resolving " << kTestCases[i].local_path; | 300 << "Resolving " << kTestCases[i].local_path; |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 } // namespace | 304 } // namespace |
OLD | NEW |