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

Unified Diff: sync/test/fake_server/fake_server_entity.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « sync/test/fake_server/fake_server_entity.h ('k') | sync/test/fake_server/fake_server_http_post_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/fake_server_entity.cc
diff --git a/sync/test/fake_server/fake_server_entity.cc b/sync/test/fake_server/fake_server_entity.cc
index 28cb2ec8af9b85dea826e5b7a07d214f0e38ac85..905bb7481ebf82ad9c9a6c5db9def5a183d785fc 100644
--- a/sync/test/fake_server/fake_server_entity.cc
+++ b/sync/test/fake_server/fake_server_entity.cc
@@ -4,11 +4,12 @@
#include "sync/test/fake_server/fake_server_entity.h"
+#include <stdint.h>
+
#include <limits>
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/guid.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
@@ -46,11 +47,11 @@ ModelType FakeServerEntity::GetModelType() const {
return model_type_;
}
-int64 FakeServerEntity::GetVersion() const {
+int64_t FakeServerEntity::GetVersion() const {
return version_;
}
-void FakeServerEntity::SetVersion(int64 version) {
+void FakeServerEntity::SetVersion(int64_t version) {
version_ = version;
}
@@ -111,12 +112,9 @@ ModelType FakeServerEntity::GetModelTypeFromId(const string& id) {
FakeServerEntity::FakeServerEntity(const string& id,
const ModelType& model_type,
- int64 version,
+ int64_t version,
const string& name)
- : id_(id),
- model_type_(model_type),
- version_(version),
- name_(name) {}
+ : id_(id), model_type_(model_type), version_(version), name_(name) {}
void FakeServerEntity::SerializeBaseProtoFields(
sync_pb::SyncEntity* sync_entity) const {
« no previous file with comments | « sync/test/fake_server/fake_server_entity.h ('k') | sync/test/fake_server/fake_server_http_post_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698