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

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

Issue 11787035: drive: Stop loading account_metadata.json from drive_scheduler_unittest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
index e6ba60e1c367a478e48f7fd840d998b34f0f9345..6b49b6ce8129f46bf89dcf5bff3afde41552af98 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
@@ -59,11 +59,9 @@ class FakeDriveService : public google_apis::DummyDriveService {
virtual void GetAccountMetadata(
const google_apis::GetAccountMetadataCallback& callback) OVERRIDE {
- // Make some sample data.
- scoped_ptr<Value> data = google_apis::test_util::LoadJSONFile(
- "gdata/account_metadata.json");
- scoped_ptr<google_apis::AccountMetadataFeed> account_metadata
- = google_apis::AccountMetadataFeed::CreateFrom(*data);
+ // The contents don't matter here, so just return empty metadata.
+ scoped_ptr<google_apis::AccountMetadataFeed> account_metadata(
+ new google_apis::AccountMetadataFeed);
base::MessageLoopProxy::current()->PostTask(FROM_HERE,
base::Bind(callback,
@@ -73,8 +71,8 @@ class FakeDriveService : public google_apis::DummyDriveService {
virtual void GetApplicationInfo(
const google_apis::GetDataCallback& callback) OVERRIDE {
- scoped_ptr<Value> data = google_apis::test_util::LoadJSONFile(
- "gdata/account_metadata.json");
+ // The contents don't matter here, so just return an empty dictionary.
+ scoped_ptr<base::Value> data(new base::DictionaryValue);
base::MessageLoopProxy::current()->PostTask(FROM_HERE,
base::Bind(callback,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698