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

Unified Diff: media/filters/source_buffer_stream_unittest.cc

Issue 17408005: Refactored DecoderBuffer to use unix_hacker_style naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@localrefactor
Patch Set: Created 7 years, 5 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
« no previous file with comments | « media/filters/source_buffer_stream.cc ('k') | media/filters/video_frame_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream_unittest.cc
diff --git a/media/filters/source_buffer_stream_unittest.cc b/media/filters/source_buffer_stream_unittest.cc
index be0cd7529eac1bcf1225e706647421a3c5ab72fa..fbfe658f15c2032d523bd6c1e8f80b2cb87f7280 100644
--- a/media/filters/source_buffer_stream_unittest.cc
+++ b/media/filters/source_buffer_stream_unittest.cc
@@ -176,8 +176,8 @@ class SourceBufferStreamTest : public testing::Test {
EXPECT_TRUE(buffer->IsKeyframe());
if (expected_data) {
- const uint8* actual_data = buffer->GetData();
- const int actual_size = buffer->GetDataSize();
+ const uint8* actual_data = buffer->data();
+ const int actual_size = buffer->data_size();
EXPECT_EQ(expected_size, actual_size);
for (int i = 0; i < std::min(actual_size, expected_size); i++) {
EXPECT_EQ(expected_data[i], actual_data[i]);
@@ -273,7 +273,7 @@ class SourceBufferStreamTest : public testing::Test {
} else {
presentation_timestamp = timestamp - frame_duration_;
}
- buffer->SetTimestamp(presentation_timestamp);
+ buffer->set_timestamp(presentation_timestamp);
queue.push_back(buffer);
}
@@ -1975,18 +1975,18 @@ TEST_F(SourceBufferStreamTest, PresentationTimestampIndependence) {
ASSERT_EQ(stream_->GetNextBuffer(&buffer), SourceBufferStream::kSuccess);
if (buffer->IsKeyframe()) {
- EXPECT_EQ(buffer->GetTimestamp(), buffer->GetDecodeTimestamp());
+ EXPECT_EQ(buffer->timestamp(), buffer->GetDecodeTimestamp());
last_keyframe_idx = i;
- last_keyframe_presentation_timestamp = buffer->GetTimestamp();
+ last_keyframe_presentation_timestamp = buffer->timestamp();
} else if (i == last_keyframe_idx + 1) {
ASSERT_NE(last_keyframe_idx, -1);
- last_p_frame_presentation_timestamp = buffer->GetTimestamp();
+ last_p_frame_presentation_timestamp = buffer->timestamp();
EXPECT_LT(last_keyframe_presentation_timestamp,
last_p_frame_presentation_timestamp);
} else {
- EXPECT_GT(buffer->GetTimestamp(), last_keyframe_presentation_timestamp);
- EXPECT_LT(buffer->GetTimestamp(), last_p_frame_presentation_timestamp);
- EXPECT_LT(buffer->GetTimestamp(), buffer->GetDecodeTimestamp());
+ EXPECT_GT(buffer->timestamp(), last_keyframe_presentation_timestamp);
+ EXPECT_LT(buffer->timestamp(), last_p_frame_presentation_timestamp);
+ EXPECT_LT(buffer->timestamp(), buffer->GetDecodeTimestamp());
}
}
}
« no previous file with comments | « media/filters/source_buffer_stream.cc ('k') | media/filters/video_frame_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698