Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |