diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 17:25:41 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 17:25:41 +0000 |
commit | d45f0d9764d93d8f89564a5df7fa505c6a87a6fe (patch) | |
tree | 89ce4ea823cf922e6955dafcfb275459589cef0a /sync/sessions/ordered_commit_set_unittest.cc | |
parent | 73e5d26041b0a22e16e383e84a8177930c9fd055 (diff) | |
download | chromium_src-d45f0d9764d93d8f89564a5df7fa505c6a87a6fe.zip chromium_src-d45f0d9764d93d8f89564a5df7fa505c6a87a6fe.tar.gz chromium_src-d45f0d9764d93d8f89564a5df7fa505c6a87a6fe.tar.bz2 |
[Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings
Since (almost) everything in sync/ is now in the 'syncer' namespace,
all of these are redundant.
Clean up indentation.
Put sync_{client,listen_notifications} into syncer namespace.
BUG=128060
TEST=
Review URL: https://chromiumcodereview.appspot.com/10795018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sessions/ordered_commit_set_unittest.cc')
-rw-r--r-- | sync/sessions/ordered_commit_set_unittest.cc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sync/sessions/ordered_commit_set_unittest.cc b/sync/sessions/ordered_commit_set_unittest.cc index 9be2992..afb76b7 100644 --- a/sync/sessions/ordered_commit_set_unittest.cc +++ b/sync/sessions/ordered_commit_set_unittest.cc @@ -15,14 +15,14 @@ namespace { class OrderedCommitSetTest : public testing::Test { public: OrderedCommitSetTest() { - routes_[syncer::BOOKMARKS] = syncer::GROUP_UI; - routes_[syncer::PREFERENCES] = syncer::GROUP_UI; - routes_[syncer::AUTOFILL] = syncer::GROUP_DB; - routes_[syncer::TOP_LEVEL_FOLDER] = syncer::GROUP_PASSIVE; + routes_[BOOKMARKS] = GROUP_UI; + routes_[PREFERENCES] = GROUP_UI; + routes_[AUTOFILL] = GROUP_DB; + routes_[TOP_LEVEL_FOLDER] = GROUP_PASSIVE; } protected: - syncer::TestIdFactory ids_; - syncer::ModelSafeRoutingInfo routes_; + TestIdFactory ids_; + ModelSafeRoutingInfo routes_; }; TEST_F(OrderedCommitSetTest, Projections) { @@ -31,18 +31,18 @@ TEST_F(OrderedCommitSetTest, Projections) { expected.push_back(ids_.NewLocalId()); OrderedCommitSet commit_set1(routes_), commit_set2(routes_); - commit_set1.AddCommitItem(0, expected[0], syncer::BOOKMARKS); - commit_set1.AddCommitItem(1, expected[1], syncer::BOOKMARKS); - commit_set1.AddCommitItem(2, expected[2], syncer::PREFERENCES); + commit_set1.AddCommitItem(0, expected[0], BOOKMARKS); + commit_set1.AddCommitItem(1, expected[1], BOOKMARKS); + commit_set1.AddCommitItem(2, expected[2], PREFERENCES); // Duplicates should be dropped. - commit_set1.AddCommitItem(2, expected[2], syncer::PREFERENCES); - commit_set1.AddCommitItem(3, expected[3], syncer::TOP_LEVEL_FOLDER); - commit_set1.AddCommitItem(4, expected[4], syncer::TOP_LEVEL_FOLDER); - commit_set2.AddCommitItem(7, expected[7], syncer::AUTOFILL); - commit_set2.AddCommitItem(6, expected[6], syncer::AUTOFILL); - commit_set2.AddCommitItem(5, expected[5], syncer::AUTOFILL); + commit_set1.AddCommitItem(2, expected[2], PREFERENCES); + commit_set1.AddCommitItem(3, expected[3], TOP_LEVEL_FOLDER); + commit_set1.AddCommitItem(4, expected[4], TOP_LEVEL_FOLDER); + commit_set2.AddCommitItem(7, expected[7], AUTOFILL); + commit_set2.AddCommitItem(6, expected[6], AUTOFILL); + commit_set2.AddCommitItem(5, expected[5], AUTOFILL); // Add something in set1 to set2, which should get dropped by AppendReverse. - commit_set2.AddCommitItem(0, expected[0], syncer::BOOKMARKS); + commit_set2.AddCommitItem(0, expected[0], BOOKMARKS); commit_set1.AppendReverse(commit_set2); // First, we should verify the projections are correct. Second, we want to @@ -101,15 +101,15 @@ TEST_F(OrderedCommitSetTest, Projections) { TEST_F(OrderedCommitSetTest, HasBookmarkCommitId) { OrderedCommitSet commit_set(routes_); - commit_set.AddCommitItem(0, ids_.NewLocalId(), syncer::AUTOFILL); - commit_set.AddCommitItem(1, ids_.NewLocalId(), syncer::TOP_LEVEL_FOLDER); + commit_set.AddCommitItem(0, ids_.NewLocalId(), AUTOFILL); + commit_set.AddCommitItem(1, ids_.NewLocalId(), TOP_LEVEL_FOLDER); EXPECT_FALSE(commit_set.HasBookmarkCommitId()); - commit_set.AddCommitItem(2, ids_.NewLocalId(), syncer::PREFERENCES); - commit_set.AddCommitItem(3, ids_.NewLocalId(), syncer::PREFERENCES); + commit_set.AddCommitItem(2, ids_.NewLocalId(), PREFERENCES); + commit_set.AddCommitItem(3, ids_.NewLocalId(), PREFERENCES); EXPECT_FALSE(commit_set.HasBookmarkCommitId()); - commit_set.AddCommitItem(4, ids_.NewLocalId(), syncer::BOOKMARKS); + commit_set.AddCommitItem(4, ids_.NewLocalId(), BOOKMARKS); EXPECT_TRUE(commit_set.HasBookmarkCommitId()); commit_set.Truncate(4); @@ -121,7 +121,7 @@ TEST_F(OrderedCommitSetTest, AddAndRemoveEntries) { ASSERT_TRUE(commit_set.Empty()); - commit_set.AddCommitItem(0, ids_.NewLocalId(), syncer::AUTOFILL); + commit_set.AddCommitItem(0, ids_.NewLocalId(), AUTOFILL); ASSERT_EQ(static_cast<size_t>(1), commit_set.Size()); commit_set.Clear(); |