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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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: chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc b/chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc
index 67c7088a759b60efe9aaa412047c8b8683112e3a..d18d4d1582c2ae1e60ba007c3ea8ce883325c0d2 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc
@@ -2,16 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <vector>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread.h"
+#include "build/build_config.h"
#include "chrome/browser/sync_file_system/file_change.h"
#include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h"
#include "chrome/browser/sync_file_system/local/local_file_change_tracker.h"
@@ -148,7 +151,7 @@ class LocalFileSyncServiceTest
}
// LocalChangeObserver overrides.
- void OnLocalChangeAvailable(int64 num_changes) override {
+ void OnLocalChangeAvailable(int64_t num_changes) override {
num_changes_ = num_changes;
}
@@ -190,7 +193,7 @@ class LocalFileSyncServiceTest
return sync_status;
}
- int64 GetNumChangesInTracker() const {
+ int64_t GetNumChangesInTracker() const {
return file_system_->backend()->change_tracker()->num_changes();
}
@@ -203,7 +206,7 @@ class LocalFileSyncServiceTest
scoped_ptr<CannedSyncableFileSystem> file_system_;
scoped_ptr<LocalFileSyncService> local_service_;
- int64 num_changes_;
+ int64_t num_changes_;
};
// More complete tests for PrepareForProcessRemoteChange and ApplyRemoteChange
@@ -597,11 +600,9 @@ class OriginChangeMapTest : public testing::Test {
return map_.NextOriginToProcess(origin);
}
- int64 GetTotalChangeCount() const {
- return map_.GetTotalChangeCount();
- }
+ int64_t GetTotalChangeCount() const { return map_.GetTotalChangeCount(); }
- void SetOriginChangeCount(const GURL& origin, int64 changes) {
+ void SetOriginChangeCount(const GURL& origin, int64_t changes) {
map_.SetOriginChangeCount(origin, changes);
}

Powered by Google App Engine
This is Rietveld 408576698