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

Side by Side Diff: components/sync/test/fake_server/fake_server_entity.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 #ifndef SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_ 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_
6 #define SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_ 6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "sync/internal_api/public/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "sync/protocol/sync.pb.h" 14 #include "components/sync/protocol/sync.pb.h"
15 15
16 namespace fake_server { 16 namespace fake_server {
17 17
18 // The representation of a Sync entity for the fake server. 18 // The representation of a Sync entity for the fake server.
19 class FakeServerEntity { 19 class FakeServerEntity {
20 public: 20 public:
21 // Creates an ID of the form <type><separator><inner-id> where 21 // Creates an ID of the form <type><separator><inner-id> where
22 // <type> is the EntitySpecifics field number for |model_type|, <separator> 22 // <type> is the EntitySpecifics field number for |model_type|, <separator>
23 // is kIdSeparator, and <inner-id> is |inner_id|. 23 // is kIdSeparator, and <inner-id> is |inner_id|.
24 // 24 //
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // The name of the entity. 75 // The name of the entity.
76 std::string name_; 76 std::string name_;
77 77
78 // The EntitySpecifics for the entity. 78 // The EntitySpecifics for the entity.
79 sync_pb::EntitySpecifics specifics_; 79 sync_pb::EntitySpecifics specifics_;
80 }; 80 };
81 81
82 } // namespace fake_server 82 } // namespace fake_server
83 83
84 #endif // SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_ 84 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_FAKE_SERVER_ENTITY_H_
OLDNEW
« 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