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

Unified Diff: chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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/chromeos/drive/drive_file_stream_reader_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc b/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc
index 7eb4c63215179f965562b003aed9ea1220a393e2..4126cfb38e796c84fc5b09f299d167fc1f1e4847 100644
--- a/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/chromeos/drive/drive_file_stream_reader.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include "base/bind.h"
@@ -390,8 +393,8 @@ TEST_F(DriveFileStreamReaderTest, Read) {
TEST_F(DriveFileStreamReaderTest, ReadRange) {
// In this test case, we just confirm that the part of file is read.
- const int64 kRangeOffset = 3;
- const int64 kRangeLength = 4;
+ const int64_t kRangeOffset = 3;
+ const int64_t kRangeLength = 4;
const base::FilePath kDriveFile =
util::GetDriveMyDriveRootPath().AppendASCII("File 1.txt");
@@ -426,7 +429,7 @@ TEST_F(DriveFileStreamReaderTest, ReadRange) {
ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &first_content));
// The length should be equal to range length.
- EXPECT_EQ(kRangeLength, static_cast<int64>(first_content.size()));
+ EXPECT_EQ(kRangeLength, static_cast<int64_t>(first_content.size()));
// Create second instance and initialize it.
// In this case, the file should be cached one.
@@ -459,8 +462,8 @@ TEST_F(DriveFileStreamReaderTest, ReadRange) {
}
TEST_F(DriveFileStreamReaderTest, OutOfRangeError) {
- const int64 kRangeOffset = 1000000; // Out of range.
- const int64 kRangeLength = 4;
+ const int64_t kRangeOffset = 1000000; // Out of range.
+ const int64_t kRangeLength = 4;
const base::FilePath kDriveFile =
util::GetDriveMyDriveRootPath().AppendASCII("File 1.txt");
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_stream_reader.cc ('k') | chrome/browser/chromeos/drive/drive_integration_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698