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

Unified Diff: media/formats/webm/webm_content_encodings_client_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/webm/webm_content_encodings_client.cc ('k') | media/formats/webm/webm_stream_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/webm/webm_content_encodings_client_unittest.cc
diff --git a/media/formats/webm/webm_content_encodings_client_unittest.cc b/media/formats/webm/webm_content_encodings_client_unittest.cc
index 268eee016285e78bccb6b422f2d61c11796a5f2c..9dcc12c63321c8d458c0bac6a53d80293a6fca61 100644
--- a/media/formats/webm/webm_content_encodings_client_unittest.cc
+++ b/media/formats/webm/webm_content_encodings_client_unittest.cc
@@ -51,9 +51,7 @@ MATCHER_P(UnexpectedContentEncAlgo, algo, "") {
class WebMContentEncodingsClientTest : public testing::Test {
public:
WebMContentEncodingsClientTest()
- : media_log_(new StrictMock<MockMediaLog>()),
- client_(media_log_),
- parser_(kWebMIdContentEncodings, &client_) {}
+ : client_(&media_log_), parser_(kWebMIdContentEncodings, &client_) {}
void ParseAndExpectToFail(const uint8_t* buf, int size) {
int result = parser_.Parse(buf, size);
@@ -61,7 +59,7 @@ class WebMContentEncodingsClientTest : public testing::Test {
}
protected:
- scoped_refptr<StrictMock<MockMediaLog>> media_log_;
+ StrictMock<MockMediaLog> media_log_;
WebMContentEncodingsClient client_;
WebMListParser parser_;
};
« no previous file with comments | « media/formats/webm/webm_content_encodings_client.cc ('k') | media/formats/webm/webm_stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698