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

Unified Diff: components/sync/api/entity_data_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/api/entity_data.cc ('k') | components/sync/api/fake_model_type_change_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/entity_data_unittest.cc
diff --git a/components/sync/api/entity_data_unittest.cc b/components/sync/api/entity_data_unittest.cc
index 5f1592132eb9f2a66634a9a5b626cc4783b31cfe..cf1acb15584ce1db7ee59f85f1b761b2f384b832 100644
--- a/components/sync/api/entity_data_unittest.cc
+++ b/components/sync/api/entity_data_unittest.cc
@@ -8,7 +8,7 @@
#include "components/sync/base/unique_position.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace syncer {
+namespace syncer_v2 {
class EntityDataTest : public testing::Test {
protected:
@@ -20,13 +20,13 @@ TEST_F(EntityDataTest, IsDeleted) {
EntityData data;
EXPECT_TRUE(data.is_deleted());
- AddDefaultFieldValue(BOOKMARKS, &data.specifics);
+ syncer::AddDefaultFieldValue(syncer::BOOKMARKS, &data.specifics);
EXPECT_FALSE(data.is_deleted());
}
TEST_F(EntityDataTest, Swap) {
EntityData data;
- AddDefaultFieldValue(BOOKMARKS, &data.specifics);
+ syncer::AddDefaultFieldValue(syncer::BOOKMARKS, &data.specifics);
data.id = "id";
data.client_tag_hash = "client_tag_hash";
data.non_unique_name = "non_unique_name";
@@ -34,6 +34,7 @@ TEST_F(EntityDataTest, Swap) {
data.modification_time = base::Time::FromTimeT(20);
data.parent_id = "parent_id";
+ using syncer::UniquePosition;
UniquePosition unique_position =
UniquePosition::InitialPosition(UniquePosition::RandomSuffix());
@@ -61,4 +62,4 @@ TEST_F(EntityDataTest, Swap) {
EXPECT_EQ(base::Time::FromTimeT(20), ptr->modification_time);
}
-} // namespace syncer
+} // namespace syncer_v2
« no previous file with comments | « components/sync/api/entity_data.cc ('k') | components/sync/api/fake_model_type_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698