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

Side by Side Diff: chrome/browser/sync/profile_sync_service_bookmark_unittest.cc

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // TODO(akalin): This file is basically just a unit test for 5 // TODO(akalin): This file is basically just a unit test for
6 // BookmarkChangeProcessor. Write unit tests for 6 // BookmarkChangeProcessor. Write unit tests for
7 // BookmarkModelAssociator separately. 7 // BookmarkModelAssociator separately.
8 8
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 syncer::ReadNode* predecessor = NULL; 112 syncer::ReadNode* predecessor = NULL;
113 if (last_child_id != syncer::kInvalidId) { 113 if (last_child_id != syncer::kInvalidId) {
114 EXPECT_EQ(BaseNode::INIT_OK, 114 EXPECT_EQ(BaseNode::INIT_OK,
115 predecessor_node.InitByIdLookup(last_child_id)); 115 predecessor_node.InitByIdLookup(last_child_id));
116 predecessor = &predecessor_node; 116 predecessor = &predecessor_node;
117 } 117 }
118 syncer::WriteNode node(&trans); 118 syncer::WriteNode node(&trans);
119 // Create new fake tagged nodes at the end of the ordering. 119 // Create new fake tagged nodes at the end of the ordering.
120 node.InitByCreation(type, root, predecessor); 120 node.InitByCreation(type, root, predecessor);
121 node.SetIsFolder(true); 121 node.SetIsFolder(true);
122 node.GetMutableEntryForTest()->Put(syncable::UNIQUE_SERVER_TAG, tag); 122 node.GetMutableEntryForTest()->Put(
123 syncer::syncable::UNIQUE_SERVER_TAG, tag);
123 node.SetTitle(UTF8ToWide(tag_str)); 124 node.SetTitle(UTF8ToWide(tag_str));
124 node.SetExternalId(0); 125 node.SetExternalId(0);
125 *sync_id = node.GetId(); 126 *sync_id = node.GetId();
126 return true; 127 return true;
127 } 128 }
128 129
129 private: 130 private:
130 syncer::UserShare* user_share_; 131 syncer::UserShare* user_share_;
131 syncer::TestIdFactory id_factory_; 132 syncer::TestIdFactory id_factory_;
132 }; 133 };
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 EXPECT_EQ(1, observer.get_started()); 1491 EXPECT_EQ(1, observer.get_started());
1491 EXPECT_EQ(0, observer.get_completed_count_at_started()); 1492 EXPECT_EQ(0, observer.get_completed_count_at_started());
1492 EXPECT_EQ(1, observer.get_completed()); 1493 EXPECT_EQ(1, observer.get_completed());
1493 1494
1494 model_->RemoveObserver(&observer); 1495 model_->RemoveObserver(&observer);
1495 } 1496 }
1496 1497
1497 } // namespace 1498 } // namespace
1498 1499
1499 } // namespace browser_sync 1500 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698