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

Unified Diff: components/sync_driver/glue/sync_backend_host_impl_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (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
Index: components/sync_driver/glue/sync_backend_host_impl_unittest.cc
diff --git a/components/sync_driver/glue/sync_backend_host_impl_unittest.cc b/components/sync_driver/glue/sync_backend_host_impl_unittest.cc
index f34cf97951ef7568f06e5bfac0fec40c52a553a9..d90ff598b9676e45834ed5f4bb261d9b028eb6d9 100644
--- a/components/sync_driver/glue/sync_backend_host_impl_unittest.cc
+++ b/components/sync_driver/glue/sync_backend_host_impl_unittest.cc
@@ -4,6 +4,8 @@
#include "components/sync_driver/glue/sync_backend_host_impl.h"
+#include <stdint.h>
+
#include <cstddef>
#include <map>
@@ -795,7 +797,7 @@ TEST_F(SyncBackendHostTest, ClearServerDataCallsAreForwarded) {
// set of invalidation version is persisted across restarts.
TEST_F(SyncBackendHostTest, IgnoreOldInvalidations) {
// Set up some old persisted invalidations.
- std::map<syncer::ModelType, int64> invalidation_versions;
+ std::map<syncer::ModelType, int64_t> invalidation_versions;
invalidation_versions[syncer::BOOKMARKS] = 20;
sync_prefs_->UpdateInvalidationVersions(invalidation_versions);
InitializeBackend(true);
@@ -843,7 +845,7 @@ TEST_F(SyncBackendHostTest, IgnoreOldInvalidations) {
// Verify that the invalidation versions were updated in the prefs.
invalidation_versions[syncer::BOOKMARKS] = 30;
invalidation_versions[syncer::SESSIONS] = 10;
- std::map<syncer::ModelType, int64> persisted_invalidation_versions;
+ std::map<syncer::ModelType, int64_t> persisted_invalidation_versions;
sync_prefs_->GetInvalidationVersions(&persisted_invalidation_versions);
EXPECT_EQ(invalidation_versions.size(),
persisted_invalidation_versions.size());
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_impl.cc ('k') | components/sync_driver/glue/sync_backend_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698