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

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: 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
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..d05a59485c24cd9b04be9b788ee5bda2024524f2 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>
@@ -111,4 +112,7 @@ class SyncData {
ImmutableSyncEntity immutable_entity_;
};
+// Printing operator - helps gtest produce readable error messages.
+std::ostream& operator<<(std::ostream& os, const SyncData& sync_data);
+
#endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698