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

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, 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/webm/webm_cluster_parser.cc ('k') | webkit/plugins/ppapi/content_decryptor_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0e8b7b271404499c30d44bc235cf61aa0d90ca23 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->timestamp().InMilliseconds(), block_info[i].timestamp);
if (!block_info[i].use_simple_block)
- EXPECT_NE(buffer->GetDuration(), kNoTimestamp());
+ EXPECT_NE(buffer->duration(), kNoTimestamp());
- if (buffer->GetDuration() != kNoTimestamp())
- EXPECT_EQ(buffer->GetDuration().InMilliseconds(), block_info[i].duration);
+ if (buffer->duration() != kNoTimestamp())
+ EXPECT_EQ(buffer->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->timestamp().InMilliseconds(), block_info.timestamp);
+ EXPECT_EQ(buffer->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->decrypt_config());
EXPECT_EQ(static_cast<unsigned long>(DecryptConfig::kDecryptionKeySize),
- buffer->GetDecryptConfig()->iv().length());
- const uint8* data = buffer->GetData();
+ buffer->decrypt_config()->iv().length());
+ const uint8* data = buffer->data();
return data[0] & kWebMFlagEncryptedFrame;
}
« no previous file with comments | « media/webm/webm_cluster_parser.cc ('k') | webkit/plugins/ppapi/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698