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

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

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments. 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_cache_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_cache_unittest.cc b/chrome/browser/chromeos/gdata/gdata_cache_unittest.cc
index d9766948ff513667a81bc14fffbedc512a65f34c..c56b69bf7594ea3b239b83e5e00f338c22fffbf0 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_cache_unittest.cc
@@ -9,7 +9,7 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/threading/sequenced_worker_pool.h"
-#include "chrome/browser/chromeos/gdata/gdata.pb.h"
+#include "chrome/browser/chromeos/gdata/drive.pb.h"
#include "chrome/browser/chromeos/gdata/gdata_cache.h"
#include "chrome/browser/chromeos/gdata/gdata_file_system.h"
#include "chrome/browser/chromeos/gdata/gdata_test_util.h"
@@ -257,7 +257,7 @@ class GDataCacheTest : public testing::Test {
std::string md5;
if (test_util::ToCacheEntry(resource.cache_state).is_present())
md5 = resource.md5;
- GDataCacheEntry cache_entry;
+ DriveCacheEntry cache_entry;
ASSERT_TRUE(GetCacheEntryFromOriginThread(
resource.resource_id, md5, &cache_entry));
EXPECT_TRUE(test_util::CacheStatesEqual(
@@ -346,7 +346,7 @@ class GDataCacheTest : public testing::Test {
EXPECT_EQ(expected_error_, error);
// Verify cache map.
- GDataCacheEntry cache_entry;
+ DriveCacheEntry cache_entry;
const bool cache_entry_found =
GetCacheEntryFromOriginThread(resource_id, md5, &cache_entry);
if (cache_entry_found)
@@ -587,7 +587,7 @@ class GDataCacheTest : public testing::Test {
EXPECT_EQ(expected_error_, error);
// Verify cache map.
- GDataCacheEntry cache_entry;
+ DriveCacheEntry cache_entry;
const bool cache_entry_found =
GetCacheEntryFromOriginThread(resource_id, md5, &cache_entry);
if (test_util::ToCacheEntry(expected_cache_state_).is_present() ||
@@ -671,7 +671,7 @@ class GDataCacheTest : public testing::Test {
// Helper function to call GetCacheEntry from origin thread.
bool GetCacheEntryFromOriginThread(const std::string& resource_id,
const std::string& md5,
- GDataCacheEntry* cache_entry) {
+ DriveCacheEntry* cache_entry) {
bool result = false;
blocking_task_runner_->PostTask(
FROM_HERE,
@@ -689,7 +689,7 @@ class GDataCacheTest : public testing::Test {
void GetCacheEntryFromOriginThreadInternal(
const std::string& resource_id,
const std::string& md5,
- GDataCacheEntry* cache_entry,
+ DriveCacheEntry* cache_entry,
bool* result) {
*result = cache_->GetCacheEntry(resource_id, md5, cache_entry);
}
@@ -697,7 +697,7 @@ class GDataCacheTest : public testing::Test {
// Returns true if the cache entry exists for the given resource ID and MD5.
bool CacheEntryExists(const std::string& resource_id,
const std::string& md5) {
- GDataCacheEntry cache_entry;
+ DriveCacheEntry cache_entry;
return GetCacheEntryFromOriginThread(resource_id, md5, &cache_entry);
}

Powered by Google App Engine
This is Rietveld 408576698