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

Side by Side Diff: sync/test/fake_server/bookmark_entity_builder.h

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_BOOKMARK_ENTITY_BUILDER_H_ 5 #ifndef SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
6 #define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_ 6 #define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "sync/internal_api/public/base/model_type.h" 11 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/test/fake_server/entity_builder.h" 12 #include "sync/test/fake_server/entity_builder.h"
13 #include "sync/test/fake_server/fake_server_entity.h" 13 #include "sync/test/fake_server/fake_server_entity.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace fake_server { 16 namespace fake_server {
17 17
18 // Builder for BookmarkEntity objects. 18 // Builder for BookmarkEntity objects.
19 class BookmarkEntityBuilder : public EntityBuilder { 19 class BookmarkEntityBuilder : public EntityBuilder {
20 public: 20 public:
21 BookmarkEntityBuilder(const std::string& title, 21 BookmarkEntityBuilder(const std::string& title,
22 const GURL& url, 22 const GURL& url,
23 const std::string& originator_cache_guid, 23 const std::string& originator_cache_guid,
24 const std::string& originator_client_item_id); 24 const std::string& originator_client_item_id);
25 25
26 ~BookmarkEntityBuilder() override; 26 ~BookmarkEntityBuilder() override;
27 27
28 // Sets the parend ID of the bookmark to be built. If this is not called,
29 // the bookmark will be included in the bookmarks bar.
30 void SetParentId(const std::string& parent_id);
31
28 // EntityBuilder 32 // EntityBuilder
29 scoped_ptr<FakeServerEntity> Build() override; 33 scoped_ptr<FakeServerEntity> Build() override;
30 34
31 private: 35 private:
32 // The bookmark's URL. 36 // The bookmark's URL.
33 GURL url_; 37 GURL url_;
34 std::string originator_cache_guid_; 38 std::string originator_cache_guid_;
35 std::string originator_client_item_id_; 39 std::string originator_client_item_id_;
40
41 // The ID of the parent bookmark folder.
42 std::string parent_id_;
36 }; 43 };
37 44
38 } // namespace fake_server 45 } // namespace fake_server
39 46
40 #endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_ 47 #endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
OLDNEW
« no previous file with comments | « sync/test/fake_server/android/fake_server_helper_android.cc ('k') | sync/test/fake_server/bookmark_entity_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698