| 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 "components/sync/test/fake_server/permanent_entity.h" | 5 #include "components/sync/test/fake_server/permanent_entity.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
| 12 #include "components/sync/protocol/sync.pb.h" | 12 #include "components/sync/protocol/sync.pb.h" |
| 13 #include "components/sync/test/fake_server/fake_server_entity.h" | 13 #include "components/sync/test/fake_server/fake_server_entity.h" |
| 14 | 14 |
| 15 using std::string; | 15 using std::string; |
| 16 | |
| 17 using syncer::ModelType; | 16 using syncer::ModelType; |
| 18 | 17 |
| 19 // The parent tag for children of the root entity. Entities with this parent are | 18 // The parent tag for children of the root entity. Entities with this parent are |
| 20 // referred to as top level enities. | 19 // referred to as top level enities. |
| 21 static const char kRootParentTag[] = "0"; | 20 static const char kRootParentTag[] = "0"; |
| 22 | 21 |
| 23 namespace fake_server { | 22 namespace fake_server { |
| 24 | 23 |
| 25 PermanentEntity::~PermanentEntity() {} | 24 PermanentEntity::~PermanentEntity() {} |
| 26 | 25 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 101 |
| 103 bool PermanentEntity::IsFolder() const { | 102 bool PermanentEntity::IsFolder() const { |
| 104 return true; | 103 return true; |
| 105 } | 104 } |
| 106 | 105 |
| 107 bool PermanentEntity::IsPermanent() const { | 106 bool PermanentEntity::IsPermanent() const { |
| 108 return true; | 107 return true; |
| 109 } | 108 } |
| 110 | 109 |
| 111 } // namespace fake_server | 110 } // namespace fake_server |
| OLD | NEW |