| Index: chrome/browser/sync/api/sync_change.h
|
| diff --git a/chrome/browser/sync/api/sync_change.h b/chrome/browser/sync/api/sync_change.h
|
| index f2bc40e05070dacd49d3ce8e6c8b9b35ddc1ebce..1b9787aabcc2157956390b5883aa93adc3b19817 100644
|
| --- a/chrome/browser/sync/api/sync_change.h
|
| +++ b/chrome/browser/sync/api/sync_change.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_
|
| #pragma once
|
|
|
| +#include <iosfwd>
|
| #include <string>
|
| #include <vector>
|
|
|
| @@ -48,6 +49,10 @@ class SyncChange {
|
| // Returns a string representation of |change_type|.
|
| static std::string ChangeTypeToString(SyncChangeType change_type);
|
|
|
| + // Returns a string representation of the entire object. Used for gmock
|
| + // printing method, PrintTo.
|
| + std::string ToString() const;
|
| +
|
| private:
|
| SyncChangeType change_type_;
|
|
|
| @@ -56,4 +61,7 @@ class SyncChange {
|
| SyncData sync_data_;
|
| };
|
|
|
| +// gmock printer helper.
|
| +void PrintTo(const SyncChange& sync_change, std::ostream* os);
|
| +
|
| #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_
|
|
|