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

Unified Diff: components/sync/api/fake_model_type_service.h

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
« no previous file with comments | « no previous file | components/sync/api/fake_model_type_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/fake_model_type_service.h
diff --git a/components/sync/api/fake_model_type_service.h b/components/sync/api/fake_model_type_service.h
index 1b93d5b87aee5ad117d6fdd800dc103073f47374..0107b3eecd08dac6a7f074444401455cd5fae242 100644
--- a/components/sync/api/fake_model_type_service.h
+++ b/components/sync/api/fake_model_type_service.h
@@ -13,8 +13,8 @@
#include "components/sync/api/metadata_batch.h"
#include "components/sync/api/model_type_service.h"
#include "components/sync/core/non_blocking_sync_common.h"
-#include "components/sync/protocol/data_type_state.pb.h"
#include "components/sync/protocol/entity_metadata.pb.h"
+#include "components/sync/protocol/model_type_state.pb.h"
namespace syncer {
@@ -66,12 +66,12 @@ class FakeModelTypeService : public ModelTypeService {
size_t data_change_count() const { return data_change_count_; }
size_t metadata_change_count() const { return metadata_change_count_; }
- const sync_pb::DataTypeState& data_type_state() const {
- return data_type_state_;
+ const sync_pb::ModelTypeState& model_type_state() const {
+ return model_type_state_;
}
- void set_data_type_state(const sync_pb::DataTypeState& data_type_state) {
- data_type_state_ = data_type_state;
+ void set_model_type_state(const sync_pb::ModelTypeState& model_type_state) {
+ model_type_state_ = model_type_state;
}
std::unique_ptr<MetadataBatch> CreateMetadataBatch() const;
@@ -82,7 +82,7 @@ class FakeModelTypeService : public ModelTypeService {
size_t metadata_change_count_ = 0;
std::map<std::string, std::unique_ptr<EntityData>> data_store_;
std::map<std::string, sync_pb::EntityMetadata> metadata_store_;
- sync_pb::DataTypeState data_type_state_;
+ sync_pb::ModelTypeState model_type_state_;
};
explicit FakeModelTypeService(
« no previous file with comments | « no previous file | components/sync/api/fake_model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698