| 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 "chrome/browser/chromeos/drive/file_system_util.h" | 5 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | |
| 14 #include "webkit/fileapi/external_mount_points.h" | 13 #include "webkit/fileapi/external_mount_points.h" |
| 15 #include "webkit/fileapi/file_system_context.h" | 14 #include "webkit/fileapi/file_system_context.h" |
| 15 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 16 #include "webkit/fileapi/file_system_task_runners.h" | 16 #include "webkit/fileapi/file_system_task_runners.h" |
| 17 #include "webkit/fileapi/file_system_url.h" | 17 #include "webkit/fileapi/file_system_url.h" |
| 18 #include "webkit/fileapi/isolated_context.h" | 18 #include "webkit/fileapi/isolated_context.h" |
| 19 #include "webkit/fileapi/mock_file_system_options.h" | 19 #include "webkit/fileapi/mock_file_system_options.h" |
| 20 | 20 |
| 21 namespace drive { | 21 namespace drive { |
| 22 namespace util { | 22 namespace util { |
| 23 | 23 |
| 24 TEST(FileSystemUtilTest, FilePathToDriveURL) { | 24 TEST(FileSystemUtilTest, FilePathToDriveURL) { |
| 25 base::FilePath path; | 25 base::FilePath path; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 EXPECT_FALSE(util::IsSpecialResourceId("file:123")); | 271 EXPECT_FALSE(util::IsSpecialResourceId("file:123")); |
| 272 EXPECT_FALSE(util::IsSpecialResourceId("folder:root")); | 272 EXPECT_FALSE(util::IsSpecialResourceId("folder:root")); |
| 273 EXPECT_FALSE(util::IsSpecialResourceId("folder:xyz")); | 273 EXPECT_FALSE(util::IsSpecialResourceId("folder:xyz")); |
| 274 | 274 |
| 275 EXPECT_TRUE(util::IsSpecialResourceId("<drive>")); | 275 EXPECT_TRUE(util::IsSpecialResourceId("<drive>")); |
| 276 EXPECT_TRUE(util::IsSpecialResourceId("<other>")); | 276 EXPECT_TRUE(util::IsSpecialResourceId("<other>")); |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace util | 279 } // namespace util |
| 280 } // namespace drive | 280 } // namespace drive |
| OLD | NEW |