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

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: 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_data.cc ('k') | chrome/browser/sync/api/sync_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6f2e582d9ba2755d8df36b73b2bd6ff77d524783 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"
@@ -53,6 +54,8 @@ class SyncError {
const std::string& message() const;
syncable::ModelType type() const;
+ std::string ToString() const;
+
private:
// Print error information to log.
void PrintLogError() const;
@@ -76,4 +79,7 @@ class SyncError {
syncable::ModelType type_;
};
+// gmock printer helper.
+void PrintTo(const SyncError& sync_error, std::ostream* os);
+
#endif // CHROME_BROWSER_SYNC_API_SYNC_ERROR_H_
« no previous file with comments | « chrome/browser/sync/api/sync_data.cc ('k') | chrome/browser/sync/api/sync_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698