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

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
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); 90 CHECK(sync_entity);
rlarocque 2014/06/09 21:28:48 See CL-level comment.
pval...(no longer on Chromium) 2014/06/09 23:29:27 sounds good. removed.
91 91
92 // FakeServerEntity fields 92 // FakeServerEntity fields
93 sync_entity->set_id_string(id_); 93 sync_entity->set_id_string(id_);
94 sync_entity->set_version(version_); 94 sync_entity->set_version(version_);
95 sync_entity->set_name(name_); 95 sync_entity->set_name(name_);
96 96
97 // Data via accessors 97 // Data via accessors
98 sync_entity->set_deleted(IsDeleted()); 98 sync_entity->set_deleted(IsDeleted());
99 sync_entity->set_folder(IsFolder()); 99 sync_entity->set_folder(IsFolder());
100 } 100 }
101 101
102 } // namespace fake_server 102 } // namespace fake_server
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698