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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ 5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_DATA_H_
6 #define CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ 6 #define CHROME_BROWSER_SYNC_API_SYNC_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <iosfwd>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/basictypes.h" 13 #include "base/basictypes.h"
13 #include "chrome/browser/sync/syncable/model_type.h" 14 #include "chrome/browser/sync/syncable/model_type.h"
14 #include "chrome/browser/sync/util/immutable.h" 15 #include "chrome/browser/sync/util/immutable.h"
15 16
16 namespace sync_pb { 17 namespace sync_pb {
17 class EntitySpecifics; 18 class EntitySpecifics;
18 class SyncEntity; 19 class SyncEntity;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Whether this SyncData holds valid data. 105 // Whether this SyncData holds valid data.
105 bool is_valid_; 106 bool is_valid_;
106 107
107 // Equal to sync_api::kInvalidId iff this is local. 108 // Equal to sync_api::kInvalidId iff this is local.
108 int64 id_; 109 int64 id_;
109 110
110 // The actual shared sync entity being held. 111 // The actual shared sync entity being held.
111 ImmutableSyncEntity immutable_entity_; 112 ImmutableSyncEntity immutable_entity_;
112 }; 113 };
113 114
115 // Printing operator - helps gtest produce readable error messages.
116 std::ostream& operator<<(std::ostream& os, const SyncData& sync_data);
117
114 #endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ 118 #endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698