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

Unified Diff: media/webm/webm_cluster_parser_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, 6 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: media/webm/webm_cluster_parser_unittest.cc
diff --git a/media/webm/webm_cluster_parser_unittest.cc b/media/webm/webm_cluster_parser_unittest.cc
index cea97e52fcc777b2ec44f262eff9c2664ecd82b1..34fc0b38f07dfae3c26ed14c14ad807d5b04fe94 100644
--- a/media/webm/webm_cluster_parser_unittest.cc
+++ b/media/webm/webm_cluster_parser_unittest.cc
@@ -117,13 +117,13 @@ static bool VerifyBuffers(const WebMClusterParser::BufferQueue& audio_buffers,
scoped_refptr<StreamParserBuffer> buffer = (*buffers)[(*offset)++];
- EXPECT_EQ(buffer->GetTimestamp().InMilliseconds(), block_info[i].timestamp);
+ EXPECT_EQ(buffer->get_timestamp().InMilliseconds(), block_info[i].timestamp);
if (!block_info[i].use_simple_block)
- EXPECT_NE(buffer->GetDuration(), kNoTimestamp());
+ EXPECT_NE(buffer->get_duration(), kNoTimestamp());
- if (buffer->GetDuration() != kNoTimestamp())
- EXPECT_EQ(buffer->GetDuration().InMilliseconds(), block_info[i].duration);
+ if (buffer->get_duration() != kNoTimestamp())
+ EXPECT_EQ(buffer->get_duration().InMilliseconds(), block_info[i].duration);
}
return true;
@@ -175,8 +175,8 @@ static bool VerifyTextBuffers(
EXPECT_FALSE(buffer_iter == buffer_end);
const scoped_refptr<StreamParserBuffer> buffer = *buffer_iter++;
- EXPECT_EQ(buffer->GetTimestamp().InMilliseconds(), block_info.timestamp);
- EXPECT_EQ(buffer->GetDuration().InMilliseconds(), block_info.duration);
+ EXPECT_EQ(buffer->get_timestamp().InMilliseconds(), block_info.timestamp);
+ EXPECT_EQ(buffer->get_duration().InMilliseconds(), block_info.duration);
}
EXPECT_TRUE(buffer_iter == buffer_end);
@@ -185,10 +185,10 @@ static bool VerifyTextBuffers(
static bool VerifyEncryptedBuffer(
scoped_refptr<StreamParserBuffer> buffer) {
- EXPECT_TRUE(buffer->GetDecryptConfig());
+ EXPECT_TRUE(buffer->get_decrypt_config());
EXPECT_EQ(static_cast<unsigned long>(DecryptConfig::kDecryptionKeySize),
- buffer->GetDecryptConfig()->iv().length());
- const uint8* data = buffer->GetData();
+ buffer->get_decrypt_config()->iv().length());
+ const uint8* data = buffer->get_data();
return data[0] & kWebMFlagEncryptedFrame;
}

Powered by Google App Engine
This is Rietveld 408576698