Index: chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc b/chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc |
index f5a39682af4a70ca7b352a5053cc9d42bd85276f..ad6c9da6f45d49fcb639e6e41e14137c53e5ab60 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc |
@@ -324,13 +324,15 @@ TEST(GDataDirectoryServiceTest, GetEntryInfoByResourceId) { |
// Confirm that an existing file is found. |
GDataFileError error = GDATA_FILE_ERROR_FAILED; |
+ FilePath drive_file_path; |
scoped_ptr<GDataEntryProto> entry_proto; |
directory_service.GetEntryInfoByResourceId( |
"file_resource_id:file4", |
- base::Bind(&test_util::CopyResultsFromGetEntryInfoCallback, |
- &error, &entry_proto)); |
+ base::Bind(&test_util::CopyResultsFromGetEntryInfoWithFilePathCallback, |
+ &error, &drive_file_path, &entry_proto)); |
test_util::RunBlockingPoolTask(); |
EXPECT_EQ(GDATA_FILE_OK, error); |
+ EXPECT_EQ(FilePath::FromUTF8Unsafe("drive/dir1/file4"), drive_file_path); |
ASSERT_TRUE(entry_proto.get()); |
EXPECT_EQ("file4", entry_proto->base_name()); |
@@ -339,8 +341,8 @@ TEST(GDataDirectoryServiceTest, GetEntryInfoByResourceId) { |
entry_proto.reset(); |
directory_service.GetEntryInfoByResourceId( |
"file:non_existing", |
- base::Bind(&test_util::CopyResultsFromGetEntryInfoCallback, |
- &error, &entry_proto)); |
+ base::Bind(&test_util::CopyResultsFromGetEntryInfoWithFilePathCallback, |
+ &error, &drive_file_path, &entry_proto)); |
test_util::RunBlockingPoolTask(); |
EXPECT_EQ(GDATA_FILE_ERROR_NOT_FOUND, error); |
EXPECT_FALSE(entry_proto.get()); |