Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3508)

Unified Diff: chrome/browser/chromeos/gdata/gdata_directory_service_unittest.cc

Issue 10823427: gdata: Change callback type of GDataDirectoryService::GetEntryInfoByResourceId() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698