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

Unified Diff: chrome/browser/safe_browsing/download_feedback_service_unittest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 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: chrome/browser/safe_browsing/download_feedback_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_feedback_service_unittest.cc b/chrome/browser/safe_browsing/download_feedback_service_unittest.cc
index 2eb5b04e3fa96451ac758550ef6b30217b286d34..a932dbf3122d90d7cb841a35490aa6a29103423e 100644
--- a/chrome/browser/safe_browsing/download_feedback_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_feedback_service_unittest.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/safe_browsing/download_feedback_service.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
#include "base/files/file_util.h"
@@ -115,7 +118,7 @@ class FakeDownloadFeedbackFactory : public DownloadFeedbackFactory {
};
bool WillStorePings(DownloadProtectionService::DownloadCheckResult result,
- int64 size) {
+ int64_t size) {
content::MockDownloadItem item;
EXPECT_CALL(item, GetReceivedBytes()).WillRepeatedly(Return(size));
@@ -172,8 +175,8 @@ class DownloadFeedbackServiceTest : public testing::Test {
};
TEST_F(DownloadFeedbackServiceTest, MaybeStorePingsForDownload) {
- const int64 ok_size = DownloadFeedback::kMaxUploadSize;
- const int64 bad_size = DownloadFeedback::kMaxUploadSize + 1;
+ const int64_t ok_size = DownloadFeedback::kMaxUploadSize;
+ const int64_t bad_size = DownloadFeedback::kMaxUploadSize + 1;
EXPECT_FALSE(WillStorePings(DownloadProtectionService::SAFE, ok_size));
EXPECT_FALSE(WillStorePings(DownloadProtectionService::DANGEROUS, ok_size));
« no previous file with comments | « chrome/browser/safe_browsing/download_feedback_service.h ('k') | chrome/browser/safe_browsing/download_protection_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698