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

Unified Diff: components/sync/core/processor_entity_tracker_unittest.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 3 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
Index: components/sync/core/processor_entity_tracker_unittest.cc
diff --git a/components/sync/core/processor_entity_tracker_unittest.cc b/components/sync/core/processor_entity_tracker_unittest.cc
index aa48d3774626485b139673441511f313f56c2c07..d2b821f78e45411131387e49a8e7ea90bb822900 100644
--- a/components/sync/core/processor_entity_tracker_unittest.cc
+++ b/components/sync/core/processor_entity_tracker_unittest.cc
@@ -18,7 +18,7 @@
#include "components/sync/syncable/syncable_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace syncer_v2 {
+namespace syncer {
namespace {
@@ -135,8 +135,7 @@ TEST_F(ProcessorEntityTrackerTest, DefaultTracker) {
EXPECT_EQ(0, entity->metadata().sequence_number());
EXPECT_EQ(0, entity->metadata().acked_sequence_number());
EXPECT_EQ(kUncommittedVersion, entity->metadata().server_version());
- EXPECT_EQ(syncer::TimeToProtoTime(ctime_),
- entity->metadata().creation_time());
+ EXPECT_EQ(TimeToProtoTime(ctime_), entity->metadata().creation_time());
EXPECT_EQ(0, entity->metadata().modification_time());
EXPECT_TRUE(entity->metadata().specifics_hash().empty());
EXPECT_TRUE(entity->metadata().base_specifics_hash().empty());
@@ -191,10 +190,9 @@ TEST_F(ProcessorEntityTrackerTest, NewLocalItem) {
EXPECT_EQ(kHash, data.client_tag_hash);
EXPECT_EQ(kName, data.non_unique_name);
EXPECT_EQ(kValue1, data.specifics.preference().value());
- EXPECT_EQ(syncer::TimeToProtoTime(ctime_),
- syncer::TimeToProtoTime(data.creation_time));
+ EXPECT_EQ(TimeToProtoTime(ctime_), TimeToProtoTime(data.creation_time));
EXPECT_EQ(entity->metadata().modification_time(),
- syncer::TimeToProtoTime(data.modification_time));
+ TimeToProtoTime(data.modification_time));
EXPECT_FALSE(data.is_deleted());
EXPECT_EQ(1, request.sequence_number);
EXPECT_EQ(kUncommittedVersion, request.base_version);
@@ -235,8 +233,7 @@ TEST_F(ProcessorEntityTrackerTest, NewServerItem) {
EXPECT_EQ(0, entity->metadata().sequence_number());
EXPECT_EQ(0, entity->metadata().acked_sequence_number());
EXPECT_EQ(10, entity->metadata().server_version());
- EXPECT_EQ(syncer::TimeToProtoTime(mtime),
- entity->metadata().modification_time());
+ EXPECT_EQ(TimeToProtoTime(mtime), entity->metadata().modification_time());
EXPECT_FALSE(entity->metadata().specifics_hash().empty());
EXPECT_TRUE(entity->metadata().base_specifics_hash().empty());
@@ -263,8 +260,7 @@ TEST_F(ProcessorEntityTrackerTest, NewServerTombstone) {
EXPECT_EQ(0, entity->metadata().sequence_number());
EXPECT_EQ(0, entity->metadata().acked_sequence_number());
EXPECT_EQ(1, entity->metadata().server_version());
- EXPECT_EQ(syncer::TimeToProtoTime(mtime),
- entity->metadata().modification_time());
+ EXPECT_EQ(TimeToProtoTime(mtime), entity->metadata().modification_time());
EXPECT_TRUE(entity->metadata().specifics_hash().empty());
EXPECT_TRUE(entity->metadata().base_specifics_hash().empty());
@@ -290,8 +286,7 @@ TEST_F(ProcessorEntityTrackerTest, ServerTombstone) {
EXPECT_EQ(0, entity->metadata().sequence_number());
EXPECT_EQ(0, entity->metadata().acked_sequence_number());
EXPECT_EQ(2, entity->metadata().server_version());
- EXPECT_EQ(syncer::TimeToProtoTime(mtime),
- entity->metadata().modification_time());
+ EXPECT_EQ(TimeToProtoTime(mtime), entity->metadata().modification_time());
EXPECT_TRUE(entity->metadata().specifics_hash().empty());
EXPECT_TRUE(entity->metadata().base_specifics_hash().empty());
@@ -394,10 +389,9 @@ TEST_F(ProcessorEntityTrackerTest, LocalDeletion) {
EXPECT_EQ(kId, data.id);
EXPECT_EQ(kHash, data.client_tag_hash);
EXPECT_EQ("", data.non_unique_name);
- EXPECT_EQ(syncer::TimeToProtoTime(ctime_),
- syncer::TimeToProtoTime(data.creation_time));
+ EXPECT_EQ(TimeToProtoTime(ctime_), TimeToProtoTime(data.creation_time));
EXPECT_EQ(entity->metadata().modification_time(),
- syncer::TimeToProtoTime(data.modification_time));
+ TimeToProtoTime(data.modification_time));
EXPECT_TRUE(data.is_deleted());
EXPECT_EQ(1, request.sequence_number);
EXPECT_EQ(1, request.base_version);
@@ -491,4 +485,4 @@ TEST_F(ProcessorEntityTrackerTest, LocalChangesInterleaved) {
EXPECT_FALSE(entity->HasCommitData());
}
-} // namespace syncer_v2
+} // namespace syncer
« no previous file with comments | « components/sync/core/processor_entity_tracker.cc ('k') | components/sync/core/shared_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698