| Index: chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
|
| index a867af2f223a7d680fc9c53a569944fd009cacc3..b0b2aa1378e15b2c8e0d481c56b1125a1494d56c 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
|
| @@ -438,4 +438,21 @@ TEST_F(GDataFileSystemTest, FindFirstMissingParentDirectory) {
|
| GDataFileSystem::DIRECTORY_ALREADY_PRESENT);
|
| }
|
|
|
| +// TODO(satorux): Write a test for GetFile() once DocumentsService is
|
| +// mockable.
|
| +
|
| +TEST_F(GDataFileSystemTest, GetGDataFileInfoFromPath) {
|
| + LoadRootFeedDocument("root_feed.json");
|
| +
|
| + GDataFileBase* file_info = file_system_->GetGDataFileInfoFromPath(
|
| + FilePath(FILE_PATH_LITERAL("gdata/File 1.txt")));
|
| + ASSERT_TRUE(file_info != NULL);
|
| + EXPECT_EQ("https://file_link_self/", file_info->self_url().spec());
|
| + EXPECT_EQ("https://file_content_url/", file_info->content_url().spec());
|
| +
|
| + GDataFileBase* non_existent = file_system_->GetGDataFileInfoFromPath(
|
| + FilePath(FILE_PATH_LITERAL("gdata/Nonexistent.txt")));
|
| + ASSERT_TRUE(non_existent == NULL);
|
| +}
|
| +
|
| } // namespace gdata
|
|
|