| 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/drive_file_system_util.h" | 5 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace gdata { | 10 namespace drive { |
| 11 namespace util { | 11 namespace util { |
| 12 | 12 |
| 13 TEST(DriveFileSystemUtilTest, IsUnderDriveMountPoint) { | 13 TEST(DriveFileSystemUtilTest, IsUnderDriveMountPoint) { |
| 14 EXPECT_FALSE(IsUnderDriveMountPoint( | 14 EXPECT_FALSE(IsUnderDriveMountPoint( |
| 15 FilePath::FromUTF8Unsafe("/wherever/foo.txt"))); | 15 FilePath::FromUTF8Unsafe("/wherever/foo.txt"))); |
| 16 EXPECT_FALSE(IsUnderDriveMountPoint( | 16 EXPECT_FALSE(IsUnderDriveMountPoint( |
| 17 FilePath::FromUTF8Unsafe("/special/foo.txt"))); | 17 FilePath::FromUTF8Unsafe("/special/foo.txt"))); |
| 18 EXPECT_FALSE(IsUnderDriveMountPoint( | 18 EXPECT_FALSE(IsUnderDriveMountPoint( |
| 19 FilePath::FromUTF8Unsafe("/special/drivex/foo.txt"))); | 19 FilePath::FromUTF8Unsafe("/special/drivex/foo.txt"))); |
| 20 EXPECT_FALSE(IsUnderDriveMountPoint( | 20 EXPECT_FALSE(IsUnderDriveMountPoint( |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 "/home/user/GCache/v1/pinned/pdf:a1b2"), | 104 "/home/user/GCache/v1/pinned/pdf:a1b2"), |
| 105 &resource_id, | 105 &resource_id, |
| 106 &md5, | 106 &md5, |
| 107 &extra_extension); | 107 &extra_extension); |
| 108 EXPECT_EQ(resource_id, "pdf:a1b2"); | 108 EXPECT_EQ(resource_id, "pdf:a1b2"); |
| 109 EXPECT_EQ(md5, ""); | 109 EXPECT_EQ(md5, ""); |
| 110 EXPECT_EQ(extra_extension, ""); | 110 EXPECT_EQ(extra_extension, ""); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace util | 113 } // namespace util |
| 114 } // namespace gdata | 114 } // namespace drive |
| OLD | NEW |