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

Unified Diff: chrome/browser/chromeos/file_system_provider/fileapi/buffering_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/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
index bcf5ee65f345d1dc54c268bbc64009cd4bd9d860..7ea517d5765b1d4f5a513f706ead20d809155407 100644
--- a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <string>
#include <vector>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
@@ -63,7 +66,7 @@ class FakeFileStreamReader : public storage::FileStreamReader {
return net::ERR_IO_PENDING;
}
- int64 GetLength(const net::Int64CompletionCallback& callback) override {
+ int64_t GetLength(const net::Int64CompletionCallback& callback) override {
DCHECK_EQ(net::OK, return_error_);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, kFileSize));
@@ -345,9 +348,9 @@ TEST_F(FileSystemProviderBufferingFileStreamReaderTest, GetLength) {
kPreloadingBufferLength,
kFileSize);
- std::vector<int64> get_length_log;
- const int64 result =
- reader.GetLength(base::Bind(&LogValue<int64>, &get_length_log));
+ std::vector<int64_t> get_length_log;
+ const int64_t result =
+ reader.GetLength(base::Bind(&LogValue<int64_t>, &get_length_log));
base::RunLoop().RunUntilIdle();
EXPECT_EQ(net::ERR_IO_PENDING, result);

Powered by Google App Engine
This is Rietveld 408576698