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

Unified Diff: chrome/browser/sync/api/sync_data.h

Issue 7978044: Sync/Valgrind: Add gmock printers for SyncChange, SyncData, SyncError. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More. Created 9 years, 3 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/sync/api/sync_change.cc ('k') | chrome/browser/sync/api/sync_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/api/sync_data.h
diff --git a/chrome/browser/sync/api/sync_data.h b/chrome/browser/sync/api/sync_data.h
index b948579b610ed3bf97e26168dc99f21938ee8f22..e1c6729d8850e5c71572d8f4347d6e2a9b78d936 100644
--- a/chrome/browser/sync/api/sync_data.h
+++ b/chrome/browser/sync/api/sync_data.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SYNC_API_SYNC_DATA_H_
#pragma once
+#include <iosfwd>
#include <string>
#include <vector>
@@ -75,6 +76,8 @@ class SyncData {
// Whether this sync data is for local data or data coming from the syncer.
bool IsLocal() const;
+ std::string ToString() const;
+
// TODO(zea): Query methods for other sync properties: parent, successor, etc.
private:
@@ -111,4 +114,7 @@ class SyncData {
ImmutableSyncEntity immutable_entity_;
};
+// gmock printer helper.
+void PrintTo(const SyncData& sync_data, std::ostream* os);
+
#endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_
« no previous file with comments | « chrome/browser/sync/api/sync_change.cc ('k') | chrome/browser/sync/api/sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698