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

Unified Diff: media/formats/mp2t/es_parser_mpeg1audio_unittest.cc

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 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/formats/mp2t/es_parser_mpeg1audio.cc ('k') | media/formats/mp2t/mp2t_stream_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/es_parser_mpeg1audio_unittest.cc
diff --git a/media/formats/mp2t/es_parser_mpeg1audio_unittest.cc b/media/formats/mp2t/es_parser_mpeg1audio_unittest.cc
index c29f4df86dbc8c00690f7162e52a77d2afacae44..a7edeaf522fbdca3b0eebb4d9ab8e9cb8b8a0510 100644
--- a/media/formats/mp2t/es_parser_mpeg1audio_unittest.cc
+++ b/media/formats/mp2t/es_parser_mpeg1audio_unittest.cc
@@ -28,6 +28,7 @@ class EsParserMpeg1AudioTest : public EsParserTestBase,
bool Process(const std::vector<Packet>& pes_packets, bool force_timing);
private:
+ MediaLog media_log_;
DISALLOW_COPY_AND_ASSIGN(EsParserMpeg1AudioTest);
};
@@ -41,7 +42,7 @@ bool EsParserMpeg1AudioTest::Process(
base::Bind(&EsParserMpeg1AudioTest::NewAudioConfig,
base::Unretained(this)),
base::Bind(&EsParserMpeg1AudioTest::EmitBuffer, base::Unretained(this)),
- new MediaLog());
+ &media_log_);
return ProcessPesPackets(&es_parser, pes_packets, force_timing);
}
« no previous file with comments | « media/formats/mp2t/es_parser_mpeg1audio.cc ('k') | media/formats/mp2t/mp2t_stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698