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

Side by Side Diff: sync/test/fake_server/fake_server_entity.cc

Issue 327593003: Sync FakeServer cleanup: CHECKs and logging info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « sync/test/fake_server/fake_server.cc ('k') | sync/test/fake_server/permanent_entity.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "sync/test/fake_server/fake_server_entity.h" 5 #include "sync/test/fake_server/fake_server_entity.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const ModelType& model_type, 80 const ModelType& model_type,
81 int64 version, 81 int64 version,
82 const string& name) 82 const string& name)
83 : id_(id), 83 : id_(id),
84 model_type_(model_type), 84 model_type_(model_type),
85 version_(version), 85 version_(version),
86 name_(name) {} 86 name_(name) {}
87 87
88 void FakeServerEntity::SerializeBaseProtoFields( 88 void FakeServerEntity::SerializeBaseProtoFields(
89 sync_pb::SyncEntity* sync_entity) { 89 sync_pb::SyncEntity* sync_entity) {
90 DCHECK(sync_entity);
91
92 // FakeServerEntity fields 90 // FakeServerEntity fields
93 sync_entity->set_id_string(id_); 91 sync_entity->set_id_string(id_);
94 sync_entity->set_version(version_); 92 sync_entity->set_version(version_);
95 sync_entity->set_name(name_); 93 sync_entity->set_name(name_);
96 94
97 // Data via accessors 95 // Data via accessors
98 sync_entity->set_deleted(IsDeleted()); 96 sync_entity->set_deleted(IsDeleted());
99 sync_entity->set_folder(IsFolder()); 97 sync_entity->set_folder(IsFolder());
100 } 98 }
101 99
102 } // namespace fake_server 100 } // namespace fake_server
OLDNEW
« no previous file with comments | « sync/test/fake_server/fake_server.cc ('k') | sync/test/fake_server/permanent_entity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698