OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/platform_util.h" | 5 #include "chrome/browser/platform_util.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/memory/ptr_util.h" | 21 #include "base/memory/ptr_util.h" |
22 #include "base/values.h" | 22 #include "base/values.h" |
23 #include "chrome/browser/chrome_content_browser_client.h" | 23 #include "chrome/browser/chrome_content_browser_client.h" |
24 #include "chrome/browser/chromeos/file_manager/app_id.h" | 24 #include "chrome/browser/chromeos/file_manager/app_id.h" |
25 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 25 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
26 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" | 26 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" |
27 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 27 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
28 #include "chrome/test/base/browser_with_test_window_test.h" | 28 #include "chrome/test/base/browser_with_test_window_test.h" |
29 #include "content/public/browser/browser_context.h" | 29 #include "content/public/browser/browser_context.h" |
30 #include "content/public/common/content_client.h" | 30 #include "content/public/common/content_client.h" |
31 #include "content/public/test/mock_special_storage_policy.h" | |
32 #include "extensions/browser/extension_registry.h" | 31 #include "extensions/browser/extension_registry.h" |
33 #include "extensions/common/extension.h" | 32 #include "extensions/common/extension.h" |
34 #include "storage/browser/fileapi/external_mount_points.h" | 33 #include "storage/browser/fileapi/external_mount_points.h" |
| 34 #include "storage/browser/test/mock_special_storage_policy.h" |
35 #include "storage/common/fileapi/file_system_types.h" | 35 #include "storage/common/fileapi/file_system_types.h" |
36 #else | 36 #else |
37 #include "content/public/test/test_browser_thread_bundle.h" | 37 #include "content/public/test/test_browser_thread_bundle.h" |
38 #endif | 38 #endif |
39 | 39 |
40 namespace platform_util { | 40 namespace platform_util { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 #if defined(OS_CHROMEOS) | 44 #if defined(OS_CHROMEOS) |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 TEST_F(PlatformUtilPosixTest, OpenFolderWithPosixSymlinks) { | 289 TEST_F(PlatformUtilPosixTest, OpenFolderWithPosixSymlinks) { |
290 EXPECT_EQ(OPEN_SUCCEEDED, CallOpenItem(symlink_to_folder_, OPEN_FOLDER)); | 290 EXPECT_EQ(OPEN_SUCCEEDED, CallOpenItem(symlink_to_folder_, OPEN_FOLDER)); |
291 EXPECT_EQ(OPEN_FAILED_INVALID_TYPE, | 291 EXPECT_EQ(OPEN_FAILED_INVALID_TYPE, |
292 CallOpenItem(symlink_to_file_, OPEN_FOLDER)); | 292 CallOpenItem(symlink_to_file_, OPEN_FOLDER)); |
293 EXPECT_EQ(OPEN_FAILED_PATH_NOT_FOUND, | 293 EXPECT_EQ(OPEN_FAILED_PATH_NOT_FOUND, |
294 CallOpenItem(symlink_to_nowhere_, OPEN_FOLDER)); | 294 CallOpenItem(symlink_to_nowhere_, OPEN_FOLDER)); |
295 } | 295 } |
296 #endif // OS_POSIX && !OS_CHROMEOS | 296 #endif // OS_POSIX && !OS_CHROMEOS |
297 | 297 |
298 } // namespace platform_util | 298 } // namespace platform_util |
OLD | NEW |