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

Unified Diff: components/drive/file_system/open_file_operation_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 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
« no previous file with comments | « components/drive/file_system/open_file_operation.h ('k') | components/drive/file_system/remove_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/file_system/open_file_operation_unittest.cc
diff --git a/components/drive/file_system/open_file_operation_unittest.cc b/components/drive/file_system/open_file_operation_unittest.cc
index 2e6f674a68b615dde8a6342ed4eedd13ef03770b..f3e503b702fa440bdedb5c6b2d4321ba77af1633 100644
--- a/components/drive/file_system/open_file_operation_unittest.cc
+++ b/components/drive/file_system/open_file_operation_unittest.cc
@@ -4,6 +4,8 @@
#include "components/drive/file_system/open_file_operation.h"
+#include <stdint.h>
+
#include <map>
#include "base/files/file_path.h"
@@ -40,7 +42,7 @@ TEST_F(OpenFileOperationTest, OpenExistingFile) {
FILE_PATH_LITERAL("drive/root/File 1.txt"));
ResourceEntry src_entry;
ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(file_in_root, &src_entry));
- const int64 file_size = src_entry.file_info().size();
+ const int64_t file_size = src_entry.file_info().size();
FileError error = FILE_ERROR_FAILED;
base::FilePath file_path;
@@ -55,7 +57,7 @@ TEST_F(OpenFileOperationTest, OpenExistingFile) {
EXPECT_EQ(FILE_ERROR_OK, error);
ASSERT_TRUE(base::PathExists(file_path));
- int64 local_file_size;
+ int64_t local_file_size;
ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size));
EXPECT_EQ(file_size, local_file_size);
@@ -123,7 +125,7 @@ TEST_F(OpenFileOperationTest, CreateNonExistingFile) {
EXPECT_EQ(FILE_ERROR_OK, error);
ASSERT_TRUE(base::PathExists(file_path));
- int64 local_file_size;
+ int64_t local_file_size;
ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size));
EXPECT_EQ(0, local_file_size); // Should be an empty file.
@@ -138,7 +140,7 @@ TEST_F(OpenFileOperationTest, OpenOrCreateExistingFile) {
FILE_PATH_LITERAL("drive/root/File 1.txt"));
ResourceEntry src_entry;
ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(file_in_root, &src_entry));
- const int64 file_size = src_entry.file_info().size();
+ const int64_t file_size = src_entry.file_info().size();
FileError error = FILE_ERROR_FAILED;
base::FilePath file_path;
@@ -157,7 +159,7 @@ TEST_F(OpenFileOperationTest, OpenOrCreateExistingFile) {
EXPECT_EQ(FILE_ERROR_OK, error);
ASSERT_TRUE(base::PathExists(file_path));
- int64 local_file_size;
+ int64_t local_file_size;
ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size));
EXPECT_EQ(file_size, local_file_size);
@@ -188,7 +190,7 @@ TEST_F(OpenFileOperationTest, OpenOrCreateNonExistingFile) {
EXPECT_EQ(FILE_ERROR_OK, error);
ASSERT_TRUE(base::PathExists(file_path));
- int64 local_file_size;
+ int64_t local_file_size;
ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size));
EXPECT_EQ(0, local_file_size); // Should be an empty file.
@@ -203,7 +205,7 @@ TEST_F(OpenFileOperationTest, OpenFileTwice) {
FILE_PATH_LITERAL("drive/root/File 1.txt"));
ResourceEntry src_entry;
ASSERT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(file_in_root, &src_entry));
- const int64 file_size = src_entry.file_info().size();
+ const int64_t file_size = src_entry.file_info().size();
FileError error = FILE_ERROR_FAILED;
base::FilePath file_path;
@@ -218,7 +220,7 @@ TEST_F(OpenFileOperationTest, OpenFileTwice) {
EXPECT_EQ(FILE_ERROR_OK, error);
ASSERT_TRUE(base::PathExists(file_path));
- int64 local_file_size;
+ int64_t local_file_size;
ASSERT_TRUE(base::GetFileSize(file_path, &local_file_size));
EXPECT_EQ(file_size, local_file_size);
« no previous file with comments | « components/drive/file_system/open_file_operation.h ('k') | components/drive/file_system/remove_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698