| Index: sync/sessions/ordered_commit_set_unittest.cc
|
| diff --git a/sync/sessions/ordered_commit_set_unittest.cc b/sync/sessions/ordered_commit_set_unittest.cc
|
| index fee37bfbb6d6caf8d8d82f0e7558f3826d39de22..6310c9d9d906df7b7d35ff7b84fd3c42cd3131cb 100644
|
| --- a/sync/sessions/ordered_commit_set_unittest.cc
|
| +++ b/sync/sessions/ordered_commit_set_unittest.cc
|
| @@ -115,6 +115,18 @@ TEST_F(OrderedCommitSetTest, HasBookmarkCommitId) {
|
| EXPECT_FALSE(commit_set.HasBookmarkCommitId());
|
| }
|
|
|
| +TEST_F(OrderedCommitSetTest, AddAndRemoveEntries) {
|
| + OrderedCommitSet commit_set(routes_);
|
| +
|
| + ASSERT_TRUE(commit_set.Empty());
|
| +
|
| + commit_set.AddCommitItem(0, ids_.NewLocalId(), syncable::AUTOFILL);
|
| + ASSERT_EQ(static_cast<size_t>(1), commit_set.Size());
|
| +
|
| + commit_set.Clear();
|
| + ASSERT_TRUE(commit_set.Empty());
|
| +}
|
| +
|
| } // namespace sessions
|
| } // namespace browser_sync
|
|
|
|
|