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

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

Issue 2394573002: [Sync] Rename DataTypeState to ModelTypeState. (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
Index: components/sync/core/shared_model_type_processor_unittest.cc
diff --git a/components/sync/core/shared_model_type_processor_unittest.cc b/components/sync/core/shared_model_type_processor_unittest.cc
index e8d22e9f6b25c96eac3401f9cd9985fba6a0bb09..732a24bdb677b18f6be934c3717b6a802268514a 100644
--- a/components/sync/core/shared_model_type_processor_unittest.cc
+++ b/components/sync/core/shared_model_type_processor_unittest.cc
@@ -26,7 +26,7 @@
using sync_pb::EntitySpecifics;
using sync_pb::EntityMetadata;
-using sync_pb::DataTypeState;
+using sync_pb::ModelTypeState;
namespace syncer {
@@ -80,9 +80,9 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
void InitializeToMetadataLoaded() {
CreateChangeProcessor();
- DataTypeState data_type_state(db_.data_type_state());
- data_type_state.set_initial_sync_done(true);
- db_.set_data_type_state(data_type_state);
+ ModelTypeState model_type_state(db_.model_type_state());
+ model_type_state.set_initial_sync_done(true);
+ db_.set_model_type_state(model_type_state);
OnMetadataLoaded();
}
@@ -208,7 +208,7 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
}
std::unique_ptr<MockModelTypeWorker> worker(
- new MockModelTypeWorker(context->data_type_state, type_processor()));
+ new MockModelTypeWorker(context->model_type_state, type_processor()));
// Keep an unsafe pointer to the commit queue the processor will use.
worker_ = worker.get();
// The context contains a proxy to the processor, but this call is
« no previous file with comments | « components/sync/core/shared_model_type_processor.cc ('k') | components/sync/core/simple_metadata_change_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698