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

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

Issue 10735049: gdata: Take GDataCache::CacheEntry as parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 8 years, 5 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_cache_metadata.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_cache_metadata_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_cache_metadata_unittest.cc b/chrome/browser/chromeos/gdata/gdata_cache_metadata_unittest.cc
index 830cc08e17bee0fbc73e448ee42910b3ed38e154..96022299b105d3970bbe01de7b50d17304dbdab6 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache_metadata_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_cache_metadata_unittest.cc
@@ -142,7 +142,9 @@ TEST_F(GDataCacheMetadataMapTest, CacheTest) {
GDataCache::CACHE_TYPE_PERSISTENT;
int test_cache_state = (GDataCache::CACHE_STATE_PRESENT |
GDataCache::CACHE_STATE_PERSISTENT);
- metadata_->UpdateCache(test_resource_id, test_file_md5, test_cache_state);
+ metadata_->UpdateCache(
+ test_resource_id,
+ GDataCache::CacheEntry(test_file_md5, test_cache_state));
// Test that the entry can be retrieved.
scoped_ptr<GDataCache::CacheEntry> cache_entry =
@@ -172,7 +174,9 @@ TEST_F(GDataCacheMetadataMapTest, CacheTest) {
test_file_md5 = "test_file_md5_2";
test_sub_dir_type = GDataCache::CACHE_TYPE_TMP;
test_cache_state = GDataCache::CACHE_STATE_PINNED;
- metadata_->UpdateCache(test_resource_id, test_file_md5, test_cache_state);
+ metadata_->UpdateCache(
+ test_resource_id,
+ GDataCache::CacheEntry(test_file_md5, test_cache_state));
// Make sure the values took.
cache_entry =
@@ -192,7 +196,9 @@ TEST_F(GDataCacheMetadataMapTest, CacheTest) {
test_file_md5 = "test_file_md5_3";
test_sub_dir_type = GDataCache::CACHE_TYPE_TMP;
test_cache_state = GDataCache::CACHE_STATE_DIRTY;
- metadata_->UpdateCache(test_resource_id, test_file_md5, test_cache_state);
+ metadata_->UpdateCache(
+ test_resource_id,
+ GDataCache::CacheEntry(test_file_md5, test_cache_state));
// Make sure the values took.
cache_entry =
@@ -225,7 +231,9 @@ TEST_F(GDataCacheMetadataMapTest, CacheTest) {
test_file_md5 = "test_file_md5_4";
test_sub_dir_type = GDataCache::CACHE_TYPE_TMP;
test_cache_state = GDataCache::CACHE_STATE_PRESENT;
- metadata_->UpdateCache(test_resource_id, test_file_md5, test_cache_state);
+ metadata_->UpdateCache(
+ test_resource_id,
+ GDataCache::CacheEntry(test_file_md5, test_cache_state));
// Make sure the values took.
cache_entry =
@@ -239,7 +247,9 @@ TEST_F(GDataCacheMetadataMapTest, CacheTest) {
test_file_md5 = "test_file_md5_5";
test_sub_dir_type = GDataCache::CACHE_TYPE_TMP;
test_cache_state = GDataCache::CACHE_STATE_NONE;
- metadata_->UpdateCache(test_resource_id, test_file_md5, test_cache_state);
+ metadata_->UpdateCache(
+ test_resource_id,
+ GDataCache::CacheEntry(test_file_md5, test_cache_state));
cache_entry =
metadata_->GetCacheEntry(test_resource_id, std::string()).Pass();
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_cache_metadata.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698