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

Unified Diff: media/base/android/media_codec_decoder_unittest.cc

Issue 1682923003: Rename browser side MediaCodec-based decoders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reformatted to make bots happy Created 4 years, 10 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/base/android/media_codec_audio_decoder.cc ('k') | media/base/android/media_codec_player.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_decoder_unittest.cc
diff --git a/media/base/android/media_codec_decoder_unittest.cc b/media/base/android/media_codec_decoder_unittest.cc
index 63aaaf7d7b6a079d50633391fd05048c3197d005..087aec5689e2d6101307ae4ebbedcb518798c44e 100644
--- a/media/base/android/media_codec_decoder_unittest.cc
+++ b/media/base/android/media_codec_decoder_unittest.cc
@@ -9,13 +9,13 @@
#include "base/macros.h"
#include "base/thread_task_runner_handle.h"
#include "base/timer/timer.h"
-#include "media/base/android/media_codec_audio_decoder.h"
+#include "media/base/android/audio_media_codec_decoder.h"
#include "media/base/android/media_codec_util.h"
-#include "media/base/android/media_codec_video_decoder.h"
#include "media/base/android/media_statistics.h"
#include "media/base/android/sdk_media_codec_bridge.h"
#include "media/base/android/test_data_factory.h"
#include "media/base/android/test_statistics.h"
+#include "media/base/android/video_media_codec_decoder.h"
#include "media/base/timestamp_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/android/surface_texture.h"
@@ -266,7 +266,7 @@ bool MediaCodecDecoderTest::WaitForCondition(const Predicate& condition,
}
void MediaCodecDecoderTest::CreateAudioDecoder() {
- decoder_ = scoped_ptr<MediaCodecDecoder>(new MediaCodecAudioDecoder(
+ decoder_ = scoped_ptr<MediaCodecDecoder>(new AudioMediaCodecDecoder(
task_runner_, &frame_statistics_,
base::Bind(&MediaCodecDecoderTest::OnDataRequested,
base::Unretained(this)),
@@ -284,7 +284,7 @@ void MediaCodecDecoderTest::CreateAudioDecoder() {
}
void MediaCodecDecoderTest::CreateVideoDecoder() {
- decoder_ = scoped_ptr<MediaCodecDecoder>(new MediaCodecVideoDecoder(
+ decoder_ = scoped_ptr<MediaCodecDecoder>(new VideoMediaCodecDecoder(
task_runner_, &frame_statistics_,
base::Bind(&MediaCodecDecoderTest::OnDataRequested,
base::Unretained(this)),
@@ -320,8 +320,8 @@ void MediaCodecDecoderTest::SetVideoSurface() {
surface_texture_ = gfx::SurfaceTexture::Create(0);
gfx::ScopedJavaSurface surface(surface_texture_.get());
ASSERT_NE(nullptr, decoder_.get());
- MediaCodecVideoDecoder* video_decoder =
- static_cast<MediaCodecVideoDecoder*>(decoder_.get());
+ VideoMediaCodecDecoder* video_decoder =
+ static_cast<VideoMediaCodecDecoder*>(decoder_.get());
video_decoder->SetVideoSurface(std::move(surface));
}
@@ -446,8 +446,8 @@ TEST_F(MediaCodecDecoderTest, VideoConfigureInvalidSurface) {
// Release the surface texture.
surface_texture = NULL;
- MediaCodecVideoDecoder* video_decoder =
- static_cast<MediaCodecVideoDecoder*>(decoder_.get());
+ VideoMediaCodecDecoder* video_decoder =
+ static_cast<VideoMediaCodecDecoder*>(decoder_.get());
video_decoder->SetVideoSurface(std::move(surface));
EXPECT_EQ(MediaCodecDecoder::kConfigFailure, decoder_->Configure(nullptr));
« no previous file with comments | « media/base/android/media_codec_audio_decoder.cc ('k') | media/base/android/media_codec_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698