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

Unified Diff: components/sync/test/fake_server/fake_server_entity.h

Issue 2328393002: [Sync] Add a sanity integration test for USS. (Closed)
Patch Set: Rebase. Created 4 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: components/sync/test/fake_server/fake_server_entity.h
diff --git a/components/sync/test/fake_server/fake_server_entity.h b/components/sync/test/fake_server/fake_server_entity.h
index 886c8ebbbc0bbea5db78c037044e6c435c109a33..1e0257979822b6ce063df56fa2303f8c5a993488 100644
--- a/components/sync/test/fake_server/fake_server_entity.h
+++ b/components/sync/test/fake_server/fake_server_entity.h
@@ -31,8 +31,11 @@ class FakeServerEntity {
static std::string GetTopLevelId(const syncer::ModelType& model_type);
virtual ~FakeServerEntity();
- const std::string& GetId() const;
- syncer::ModelType GetModelType() const;
+ const std::string& id() const { return id_; }
+ const std::string& client_defined_unique_tag() const {
+ return client_defined_unique_tag_;
+ }
+ syncer::ModelType model_type() const { return model_type_; }
int64_t GetVersion() const;
void SetVersion(int64_t version);
const std::string& GetName() const;
@@ -56,6 +59,7 @@ class FakeServerEntity {
static syncer::ModelType GetModelTypeFromId(const std::string& id);
FakeServerEntity(const std::string& id,
+ const std::string& client_defined_unique_tag,
const syncer::ModelType& model_type,
int64_t version,
const std::string& name);
@@ -64,10 +68,13 @@ class FakeServerEntity {
private:
// The entity's ID.
- std::string id_;
+ const std::string id_;
+
+ // The tag for this entity. Can be empty for bookmarks or permanent entities.
+ const std::string client_defined_unique_tag_;
// The ModelType that categorizes this entity.
- syncer::ModelType model_type_;
+ const syncer::ModelType model_type_;
// The version of this entity.
int64_t version_;
« no previous file with comments | « components/sync/test/fake_server/fake_server.cc ('k') | components/sync/test/fake_server/fake_server_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698