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

Unified Diff: chrome/browser/sync/api/sync_error.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_error.h
diff --git a/chrome/browser/sync/api/sync_error.h b/chrome/browser/sync/api/sync_error.h
index c4bc7c3079c8a10d0932fc9276a4d97640ba81b8..924495c2177cc900c4cb7f9de0b85b5cae7554a3 100644
--- a/chrome/browser/sync/api/sync_error.h
+++ b/chrome/browser/sync/api/sync_error.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SYNC_API_SYNC_ERROR_H_
#pragma once
+#include <iosfwd>
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -76,4 +77,7 @@ class SyncError {
syncable::ModelType type_;
};
+// Printing operator - helps gtest produce readable error messages.
+std::ostream& operator<<(std::ostream& os, const SyncError& sync_error);
+
#endif // CHROME_BROWSER_SYNC_API_SYNC_ERROR_H_

Powered by Google App Engine
This is Rietveld 408576698