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

Unified Diff: components/sync/model/mutable_data_batch_unittest.cc

Issue 2416823003: [Sync] Move some things from core/ to model(_impl)/. (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/model/mutable_data_batch.cc ('k') | components/sync/model/simple_metadata_change_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/mutable_data_batch_unittest.cc
diff --git a/components/sync/core/data_batch_impl_unittest.cc b/components/sync/model/mutable_data_batch_unittest.cc
similarity index 89%
rename from components/sync/core/data_batch_impl_unittest.cc
rename to components/sync/model/mutable_data_batch_unittest.cc
index 3b98230e6d600ddf1e298944e08b916d19d4a424..3c324bc2988aa0cb841522c60932b364d7cad2ae 100644
--- a/components/sync/core/data_batch_impl_unittest.cc
+++ b/components/sync/model/mutable_data_batch_unittest.cc
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync/core/data_batch_impl.h"
+#include "components/sync/model/mutable_data_batch.h"
#include "base/memory/ptr_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
-TEST(DataBatchImplTest, PutAndNextWithReuse) {
+TEST(MutableDataBatchTest, PutAndNextWithReuse) {
EntityData* entity1 = new EntityData();
EntityData* entity2 = new EntityData();
- DataBatchImpl batch;
+ MutableDataBatch batch;
EXPECT_FALSE(batch.HasNext());
batch.Put("one", base::WrapUnique(entity1));
@@ -33,12 +33,12 @@ TEST(DataBatchImplTest, PutAndNextWithReuse) {
EXPECT_EQ(entity2, pair2.second.get());
}
-TEST(DataBatchImplTest, PutAndNextInterleaved) {
+TEST(MutableDataBatchTest, PutAndNextInterleaved) {
EntityData* entity1 = new EntityData();
EntityData* entity2 = new EntityData();
EntityData* entity3 = new EntityData();
- DataBatchImpl batch;
+ MutableDataBatch batch;
EXPECT_FALSE(batch.HasNext());
batch.Put("one", base::WrapUnique(entity1));
@@ -65,11 +65,11 @@ TEST(DataBatchImplTest, PutAndNextInterleaved) {
EXPECT_EQ(entity3, pair3.second.get());
}
-TEST(DataBatchImplTest, PutAndNextSharedKey) {
+TEST(MutableDataBatchTest, PutAndNextSharedKey) {
EntityData* entity1 = new EntityData();
EntityData* entity2 = new EntityData();
- DataBatchImpl batch;
+ MutableDataBatch batch;
EXPECT_FALSE(batch.HasNext());
batch.Put("same", base::WrapUnique(entity1));
« no previous file with comments | « components/sync/model/mutable_data_batch.cc ('k') | components/sync/model/simple_metadata_change_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698