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

Unified Diff: components/sync/engine_impl/worker_entity_tracker_unittest.cc

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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/engine_impl/worker_entity_tracker.cc ('k') | components/sync/syncable/dir_open_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/worker_entity_tracker_unittest.cc
diff --git a/components/sync/engine_impl/worker_entity_tracker_unittest.cc b/components/sync/engine_impl/worker_entity_tracker_unittest.cc
index 60cadd3017389aa45ca9427e7ff5f1dc7b1eb3b6..cbe91d3f35295de0c2cf542f37a49c20f7ea3db6 100644
--- a/components/sync/engine_impl/worker_entity_tracker_unittest.cc
+++ b/components/sync/engine_impl/worker_entity_tracker_unittest.cc
@@ -16,7 +16,7 @@
#include "components/sync/syncable/syncable_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace syncer_v2 {
+namespace syncer {
// Some simple tests for the WorkerEntityTracker.
//
@@ -31,9 +31,7 @@ class WorkerEntityTrackerTest : public ::testing::Test {
WorkerEntityTrackerTest()
: kServerId("ServerID"),
kClientTag("some.sample.tag"),
- kClientTagHash(
- syncer::syncable::GenerateSyncableHash(syncer::PREFERENCES,
- kClientTag)),
+ kClientTagHash(syncable::GenerateSyncableHash(PREFERENCES, kClientTag)),
kSpecificsHash("somehash"),
kCtime(base::Time::UnixEpoch() + base::TimeDelta::FromDays(10)),
kMtime(base::Time::UnixEpoch() + base::TimeDelta::FromDays(20)),
@@ -105,8 +103,8 @@ TEST_F(WorkerEntityTrackerTest, FromCommitRequest) {
EXPECT_EQ("", pb_entity.id_string());
EXPECT_EQ(kClientTagHash, pb_entity.client_defined_unique_tag());
EXPECT_EQ(kBaseVersion, pb_entity.version());
- EXPECT_EQ(kCtime, syncer::ProtoTimeToTime(pb_entity.ctime()));
- EXPECT_EQ(kMtime, syncer::ProtoTimeToTime(pb_entity.mtime()));
+ EXPECT_EQ(kCtime, ProtoTimeToTime(pb_entity.ctime()));
+ EXPECT_EQ(kMtime, ProtoTimeToTime(pb_entity.mtime()));
EXPECT_FALSE(pb_entity.deleted());
EXPECT_EQ(specifics.preference().name(),
pb_entity.specifics().preference().name());
@@ -186,4 +184,4 @@ TEST_F(WorkerEntityTrackerTest, QuickCommits) {
EXPECT_EQ(kCommitResponseVersion, pb_entity.version());
}
-} // namespace syncer_v2
+} // namespace syncer
« no previous file with comments | « components/sync/engine_impl/worker_entity_tracker.cc ('k') | components/sync/syncable/dir_open_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698