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

Unified Diff: chrome/browser/chromeos/gdata/gdata_db.h

Issue 10701118: gdata: Fix a bug in GDataLevelDB where errors are not handled right (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo 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 | « no previous file | chrome/browser/chromeos/gdata/gdata_db_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_db.h
diff --git a/chrome/browser/chromeos/gdata/gdata_db.h b/chrome/browser/chromeos/gdata/gdata_db.h
index 67d1e58115fae00a0f9fa8d881dee72949560e80..a5dd1d93b7a27b42d7c0f79e628cb7c681f1e6c7 100644
--- a/chrome/browser/chromeos/gdata/gdata_db.h
+++ b/chrome/browser/chromeos/gdata/gdata_db.h
@@ -47,6 +47,11 @@ class GDataDB {
// Will not return NULL.
virtual scoped_ptr<GDataDBIter> CreateIterator(const FilePath& path) = 0;
+ // Puts |raw_value| keyed with |resource_id| to the database.
+ // Used for testing (ex. injecting incompatible proto).
+ virtual Status PutRawForTesting(const std::string& resource_id,
+ const std::string& raw_value) = 0;
+
protected:
GDataDB() {}
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698