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

Unified Diff: sync/test/engine/mock_commit_queue.h

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/engine/fake_model_worker.h ('k') | sync/test/engine/mock_commit_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_commit_queue.h
diff --git a/sync/test/engine/mock_commit_queue.h b/sync/test/engine/mock_commit_queue.h
index 65a6e114260ca7577fc432feb1bbababedac3dec..f217183d5a652583219beb143f0ed7f174d18889 100644
--- a/sync/test/engine/mock_commit_queue.h
+++ b/sync/test/engine/mock_commit_queue.h
@@ -5,6 +5,9 @@
#ifndef SYNC_TEST_ENGINE_MOCK_COMMIT_QUEUE_H_
#define SYNC_TEST_ENGINE_MOCK_COMMIT_QUEUE_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include <string>
#include <vector>
@@ -45,13 +48,13 @@ class MockCommitQueue : public CommitQueue {
// going backwards), reflections and redeliveries (ie. several instances of
// the same version) or new updates.
UpdateResponseData UpdateFromServer(
- int64 version_offset,
+ int64_t version_offset,
const std::string& tag_hash,
const sync_pb::EntitySpecifics& specifics);
// Returns an UpdateResponseData representing a tombstone update from the
// server. Updates server state accordingly.
- UpdateResponseData TombstoneFromServer(int64 version_offset,
+ UpdateResponseData TombstoneFromServer(int64_t version_offset,
const std::string& tag_hash);
// Returns a commit response that indicates a successful commit of the
@@ -69,15 +72,15 @@ class MockCommitQueue : public CommitQueue {
static std::string GenerateId(const std::string& tag_hash);
// Retrieve or set the server version.
- int64 GetServerVersion(const std::string& tag_hash);
- void SetServerVersion(const std::string& tag_hash, int64 version);
+ int64_t GetServerVersion(const std::string& tag_hash);
+ void SetServerVersion(const std::string& tag_hash, int64_t version);
// A record of past commits requests.
std::vector<CommitRequestDataList> commit_request_lists_;
// Map of versions by client tag.
// This is an essential part of the mocked server state.
- std::map<const std::string, int64> server_versions_;
+ std::map<const std::string, int64_t> server_versions_;
// Name of the encryption key in use on other clients.
std::string server_encryption_key_name_;
« no previous file with comments | « sync/test/engine/fake_model_worker.h ('k') | sync/test/engine/mock_commit_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698