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

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

Issue 9694016: Extend and refactor GDataFileBase and derived classes. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
===================================================================
--- chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (revision 126341)
+++ chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc (working copy)
@@ -553,14 +553,14 @@
GDataFileBase* file = NULL;
EXPECT_TRUE((file = FindFile(file_in_root)) != NULL);
EXPECT_TRUE(file->AsGDataFile() != NULL);
- std::string file_in_root_resource = file->AsGDataFile()->resource();
+ std::string file_in_root_resource = file->AsGDataFile()->resource_id();
EXPECT_EQ(file, FindFileByResource(file_in_root_resource));
EXPECT_TRUE(FindFile(dir_in_root) != NULL);
EXPECT_TRUE((file = FindFile(file_in_subdir)) != NULL);
EXPECT_TRUE(file->AsGDataFile() != NULL);
- std::string file_in_subdir_resource = file->AsGDataFile()->resource();
+ std::string file_in_subdir_resource = file->AsGDataFile()->resource_id();
EXPECT_EQ(file, FindFileByResource(file_in_subdir_resource));
// Remove first file in root.
@@ -761,12 +761,13 @@
// Store a file corresponding to resource and md5 of "gdata/File 1.txt" to
// cache.
- TestStoreToCache(file->resource(), file->file_md5(),
+ TestStoreToCache(file->resource_id(), file->file_md5(),
GetTestFilePath("root_feed.json"));
// Now the file should exist in cache.
cache_file_path = file_system_->GetFromCacheForPath(gdata_file_path);
- EXPECT_EQ(file_system_->GetCacheFilePath(file->resource(), file->file_md5()),
+ EXPECT_EQ(file_system_->GetCacheFilePath(file->resource_id(),
+ file->file_md5()),
cache_file_path);
// A file that doesn't exist in gdata.
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698