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

Unified Diff: chrome/browser/chromeos/drive/test_util.cc

Issue 15663006: drive: Merge 'persistent' and 'tmp' directories to 'files' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/drive/test_util.cc
diff --git a/chrome/browser/chromeos/drive/test_util.cc b/chrome/browser/chromeos/drive/test_util.cc
index 9b93748c420c9b1e97510d906450dbf480886e0c..343180b10c075a3ec83cb8f3ec71ba7d3a35cda8 100644
--- a/chrome/browser/chromeos/drive/test_util.cc
+++ b/chrome/browser/chromeos/drive/test_util.cc
@@ -42,7 +42,7 @@ std::vector<TestCacheResource> GetDefaultTestCacheResources() {
"md5_tmp_non_alphanumeric",
false,
false),
- // Cache resource that is pinned and persistent.
+ // Cache resource that is pinned and present.
TestCacheResource("pinned/cache.mp3",
"pinned:existing",
"md5_pinned_existing",
@@ -78,16 +78,14 @@ FileCacheEntry ToCacheEntry(int cache_state) {
cache_entry.set_is_pinned(cache_state & TEST_CACHE_STATE_PINNED);
cache_entry.set_is_dirty(cache_state & TEST_CACHE_STATE_DIRTY);
cache_entry.set_is_mounted(cache_state & TEST_CACHE_STATE_MOUNTED);
- cache_entry.set_is_persistent(cache_state & TEST_CACHE_STATE_PERSISTENT);
return cache_entry;
}
bool CacheStatesEqual(const FileCacheEntry& a, const FileCacheEntry& b) {
- return (a.is_present() == b.is_present() &&
- a.is_pinned() == b.is_pinned() &&
- a.is_dirty() == b.is_dirty() &&
- a.is_mounted() == b.is_mounted() &&
- a.is_persistent() == b.is_persistent());
+ return a.is_present() == b.is_present() &&
+ a.is_pinned() == b.is_pinned() &&
+ a.is_dirty() == b.is_dirty() &&
+ a.is_mounted() == b.is_mounted();
}
bool PrepareTestCacheResources(

Powered by Google App Engine
This is Rietveld 408576698