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

Unified Diff: sync/internal_api/shared_model_type_processor_unittest.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/internal_api/read_transaction.cc ('k') | sync/internal_api/sync_backup_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/shared_model_type_processor_unittest.cc
diff --git a/sync/internal_api/shared_model_type_processor_unittest.cc b/sync/internal_api/shared_model_type_processor_unittest.cc
index 23506a828a1796d528ed7f76e49fcbbf4594284e..411e8b1be04162c23357afe75751892745abc514 100644
--- a/sync/internal_api/shared_model_type_processor_unittest.cc
+++ b/sync/internal_api/shared_model_type_processor_unittest.cc
@@ -4,6 +4,9 @@
#include "sync/internal_api/public/shared_model_type_processor.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
@@ -76,14 +79,14 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
// Emulate updates from the server.
// This harness has some functionality to help emulate server behavior.
// See the definitions of these methods for more information.
- void UpdateFromServer(int64 version_offset,
+ void UpdateFromServer(int64_t version_offset,
const std::string& tag,
const std::string& value);
- void TombstoneFromServer(int64 version_offset, const std::string& tag);
+ void TombstoneFromServer(int64_t version_offset, const std::string& tag);
// Emulate the receipt of pending updates from the server.
// Pending updates are usually caused by a temporary decryption failure.
- void PendingUpdateFromServer(int64 version_offset,
+ void PendingUpdateFromServer(int64_t version_offset,
const std::string& tag,
const std::string& value,
const std::string& key_name);
@@ -128,8 +131,8 @@ class SharedModelTypeProcessorTest : public ::testing::Test,
const std::string& value,
const std::string& key_name);
- int64 GetServerVersion(const std::string& tag);
- void SetServerVersion(const std::string& tag, int64 version);
+ int64_t GetServerVersion(const std::string& tag);
+ void SetServerVersion(const std::string& tag, int64_t version);
void StartDone(syncer::SyncError error,
scoped_ptr<ActivationContext> context);
@@ -225,7 +228,7 @@ void SharedModelTypeProcessorTest::OnInitialSyncDone() {
empty_update_list);
}
-void SharedModelTypeProcessorTest::UpdateFromServer(int64 version_offset,
+void SharedModelTypeProcessorTest::UpdateFromServer(int64_t version_offset,
const std::string& tag,
const std::string& value) {
const std::string tag_hash = GenerateTagHash(tag);
@@ -239,7 +242,7 @@ void SharedModelTypeProcessorTest::UpdateFromServer(int64 version_offset,
}
void SharedModelTypeProcessorTest::PendingUpdateFromServer(
- int64 version_offset,
+ int64_t version_offset,
const std::string& tag,
const std::string& value,
const std::string& key_name) {
@@ -254,7 +257,7 @@ void SharedModelTypeProcessorTest::PendingUpdateFromServer(
list);
}
-void SharedModelTypeProcessorTest::TombstoneFromServer(int64 version_offset,
+void SharedModelTypeProcessorTest::TombstoneFromServer(int64_t version_offset,
const std::string& tag) {
// Overwrite the existing server version if this is the new highest version.
std::string tag_hash = GenerateTagHash(tag);
« no previous file with comments | « sync/internal_api/read_transaction.cc ('k') | sync/internal_api/sync_backup_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698