diff options
Diffstat (limited to 'media/base/data_buffer_unittest.cc')
-rw-r--r-- | media/base/data_buffer_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/base/data_buffer_unittest.cc b/media/base/data_buffer_unittest.cc index 2d014ffa..8e40d1a 100644 --- a/media/base/data_buffer_unittest.cc +++ b/media/base/data_buffer_unittest.cc @@ -15,7 +15,7 @@ TEST(DataBufferTest, StreamSampleImpl) { const base::TimeDelta kDurationB = base::TimeDelta::FromMicroseconds(5678); // Create a DataBuffer. - scoped_refptr<DataBuffer> buffer = new DataBuffer(0); + scoped_refptr<DataBuffer> buffer(new DataBuffer(0)); ASSERT_TRUE(buffer); buffer->SetTimestamp(kTimestampA); @@ -38,10 +38,10 @@ TEST(DataBufferTest, StreamSampleImpl) { TEST(DataBufferTest, Ctors) { const size_t kTestSize = 10; - scoped_refptr<DataBuffer> buffer = new DataBuffer(0); + scoped_refptr<DataBuffer> buffer(new DataBuffer(0)); EXPECT_FALSE(buffer->GetData()); - scoped_refptr<DataBuffer> buffer2 = new DataBuffer(kTestSize); + scoped_refptr<DataBuffer> buffer2(new DataBuffer(kTestSize)); EXPECT_EQ(0u, buffer2->GetDataSize()); EXPECT_EQ(kTestSize, buffer2->GetBufferSize()); } @@ -53,7 +53,7 @@ TEST(DataBufferTest, WritableBufferImpl) { const size_t kNewDataSize = arraysize(kNewData); // Create a DataBuffer. - scoped_refptr<DataBuffer> buffer = new DataBuffer(kDataSize); + scoped_refptr<DataBuffer> buffer(new DataBuffer(kDataSize)); ASSERT_TRUE(buffer); uint8* data = buffer->GetWritableData(); @@ -66,7 +66,7 @@ TEST(DataBufferTest, WritableBufferImpl) { ASSERT_EQ(0, memcmp(read_only_data, kData, kDataSize)); EXPECT_FALSE(buffer->IsEndOfStream()); - scoped_refptr<DataBuffer> buffer2 = new DataBuffer(kNewDataSize + 10); + scoped_refptr<DataBuffer> buffer2(new DataBuffer(kNewDataSize + 10)); data = buffer2->GetWritableData(); ASSERT_TRUE(data); ASSERT_EQ(kNewDataSize + 10, buffer2->GetBufferSize()); |