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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Place __STDC_FORMAT_MACROS inside conditional block Created 6 years, 8 months 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: native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc b/native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc
index 3acbaa80d514cd09c08695fe5aa46c02950b7de7..8ea7c07eca9d2f7fff1fa3035b6bac4a128061f1 100644
--- a/native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/html5_fs_test.cc
@@ -223,7 +223,7 @@ TEST_F(Html5FsTest, OpenForCreate) {
ASSERT_EQ(0, fs->Open(path, O_CREAT, &node));
// Check that the file still has data.
- size_t size;
+ off_t size;
EXPECT_EQ(0, node->GetSize(&size));
EXPECT_EQ(strlen(contents), size);
@@ -359,7 +359,7 @@ TEST_F(Html5FsTest, GetStat) {
EXPECT_EQ(modified_time, statbuf.st_mtime);
// Test Get* and Isa* methods.
- size_t size;
+ off_t size;
EXPECT_EQ(0, node->GetSize(&size));
EXPECT_EQ(strlen(contents), size);
EXPECT_FALSE(node->IsaDir());
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc ('k') | native_client_sdk/src/tests/nacl_io_test/http_fs_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698