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

Unified Diff: media/blink/buffered_data_source_unittest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: media/blink/buffered_data_source_unittest.cc
diff --git a/media/blink/buffered_data_source_unittest.cc b/media/blink/buffered_data_source_unittest.cc
index 4ac4f935edc17f79efc731ce0622098b4bd6cf03..719ed2c4651cf0fe97e2cb63485ba1b74841e166 100644
--- a/media/blink/buffered_data_source_unittest.cc
+++ b/media/blink/buffered_data_source_unittest.cc
@@ -38,8 +38,8 @@ class MockBufferedDataSourceHost : public BufferedDataSourceHost {
MockBufferedDataSourceHost() {}
virtual ~MockBufferedDataSourceHost() {}
- MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes));
- MOCK_METHOD2(AddBufferedByteRange, void(int64 start, int64 end));
+ MOCK_METHOD1(SetTotalBytes, void(int64_t total_bytes));
+ MOCK_METHOD2(AddBufferedByteRange, void(int64_t start, int64_t end));
private:
DISALLOW_COPY_AND_ASSIGN(MockBufferedDataSourceHost);
@@ -67,9 +67,9 @@ class MockBufferedDataSource : public BufferedDataSource {
loading_(false) {}
virtual ~MockBufferedDataSource() {}
- MOCK_METHOD2(CreateResourceLoader, BufferedResourceLoader*(int64, int64));
- BufferedResourceLoader* CreateMockResourceLoader(int64 first_byte_position,
- int64 last_byte_position) {
+ MOCK_METHOD2(CreateResourceLoader, BufferedResourceLoader*(int64_t, int64_t));
+ BufferedResourceLoader* CreateMockResourceLoader(int64_t first_byte_position,
+ int64_t last_byte_position) {
CHECK(!loading_) << "Previous resource load wasn't cancelled";
BufferedResourceLoader* loader =
@@ -103,8 +103,8 @@ class MockBufferedDataSource : public BufferedDataSource {
DISALLOW_COPY_AND_ASSIGN(MockBufferedDataSource);
};
-static const int64 kFileSize = 5000000;
-static const int64 kFarReadPosition = 4000000;
+static const int64_t kFileSize = 5000000;
+static const int64_t kFarReadPosition = 4000000;
static const int kDataSize = 1024;
static const char kHttpUrl[] = "http://localhost/foo.webm";
@@ -224,7 +224,7 @@ class BufferedDataSourceTest : public testing::Test {
MOCK_METHOD1(ReadCallback, void(int size));
- void ReadAt(int64 position) {
+ void ReadAt(int64_t position) {
data_source_->Read(position, kDataSize, buffer_,
base::Bind(&BufferedDataSourceTest::ReadCallback,
base::Unretained(this)));
@@ -307,7 +307,7 @@ class BufferedDataSourceTest : public testing::Test {
private:
// Used for calling BufferedDataSource::Read().
- uint8 buffer_[kDataSize];
+ uint8_t buffer_[kDataSize];
BufferedDataSource::Preload preload_;
@@ -699,7 +699,7 @@ TEST_F(BufferedDataSourceTest, File_Successful) {
TEST_F(BufferedDataSourceTest, StopDuringRead) {
InitializeWith206Response();
- uint8 buffer[256];
+ uint8_t buffer[256];
data_source_->Read(0, arraysize(buffer), buffer, base::Bind(
&BufferedDataSourceTest::ReadCallback, base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698