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

Unified Diff: content/browser/download/base_file_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « content/browser/download/base_file.cc ('k') | content/browser/download/base_file_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file_unittest.cc
diff --git a/content/browser/download/base_file_unittest.cc b/content/browser/download/base_file_unittest.cc
index 7e27ffe0969850f4a753b573cebfe9b65a69d760..84f0d9e82fa783f8053c33426c07bd137ff73f81 100644
--- a/content/browser/download/base_file_unittest.cc
+++ b/content/browser/download/base_file_unittest.cc
@@ -4,13 +4,18 @@
#include "content/browser/download/base_file.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/test_file_util.h"
+#include "build/build_config.h"
#include "content/browser/browser_thread_impl.h"
#include "content/public/browser/download_interrupt_reasons.h"
#include "crypto/secure_hash.h"
@@ -61,7 +66,7 @@ class BaseFileTest : public testing::Test {
void TearDown() override {
EXPECT_FALSE(base_file_->in_progress());
if (!expected_error_) {
- EXPECT_EQ(static_cast<int64>(expected_data_.size()),
+ EXPECT_EQ(static_cast<int64_t>(expected_data_.size()),
base_file_->bytes_so_far());
}
@@ -126,7 +131,7 @@ class BaseFileTest : public testing::Test {
if (base_file_->in_progress()) {
expected_data_ += data;
if (expected_error_ == DOWNLOAD_INTERRUPT_REASON_NONE) {
- EXPECT_EQ(static_cast<int64>(expected_data_.size()),
+ EXPECT_EQ(static_cast<int64_t>(expected_data_.size()),
base_file_->bytes_so_far());
}
}
@@ -181,7 +186,7 @@ class BaseFileTest : public testing::Test {
duplicate_file.Detach();
}
- int64 CurrentSpeedAtTime(base::TimeTicks current_time) {
+ int64_t CurrentSpeedAtTime(base::TimeTicks current_time) {
EXPECT_TRUE(base_file_.get());
return base_file_->CurrentSpeedAtTime(current_time);
}
« no previous file with comments | « content/browser/download/base_file.cc ('k') | content/browser/download/base_file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698