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

Unified Diff: webrtc/video/vie_encoder_unittest.cc

Issue 2489843002: Revert of Extract bitrate allocation of spatial/temporal layers out of codec impl. (Closed)
Patch Set: Created 4 years, 1 month 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 | « webrtc/video/vie_encoder.cc ('k') | webrtc/video_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/vie_encoder_unittest.cc
diff --git a/webrtc/video/vie_encoder_unittest.cc b/webrtc/video/vie_encoder_unittest.cc
index f6046be652c0f5e3fdc0df8f7df82057560224e6..9f4fdc47e33094d3577dbe4f05eb226bfb37a173 100644
--- a/webrtc/video/vie_encoder_unittest.cc
+++ b/webrtc/video/vie_encoder_unittest.cc
@@ -93,7 +93,6 @@
VideoEncoderConfig video_encoder_config;
test::FillEncoderConfiguration(1, &video_encoder_config);
- video_encoder_config_ = video_encoder_config.Copy();
vie_encoder_.reset(new ViEEncoderUnderTest(
stats_proxy_.get(), video_send_config_.encoder_settings));
vie_encoder_->SetSink(&sink_, false /* rotation_applied */);
@@ -237,7 +236,6 @@
};
VideoSendStream::Config video_send_config_;
- VideoEncoderConfig video_encoder_config_;
int codec_width_;
int codec_height_;
TestEncoder fake_encoder_;
@@ -597,20 +595,6 @@
vie_encoder_->Stop();
}
-TEST_F(ViEEncoderTest, StatsTracksPreferredBitrate) {
- const int kTargetBitrateBps = 100000;
- vie_encoder_->OnBitrateUpdated(kTargetBitrateBps, 0, 0);
-
- video_source_.IncomingCapturedFrame(CreateFrame(1, 1280, 720));
- sink_.WaitForEncodedFrame(1);
-
- VideoSendStream::Stats stats = stats_proxy_->GetStats();
- EXPECT_EQ(video_encoder_config_.max_bitrate_bps,
- stats.preferred_media_bitrate_bps);
-
- vie_encoder_->Stop();
-}
-
TEST_F(ViEEncoderTest, UMACpuLimitedResolutionInPercent) {
const int kTargetBitrateBps = 100000;
vie_encoder_->OnBitrateUpdated(kTargetBitrateBps, 0, 0);
« no previous file with comments | « webrtc/video/vie_encoder.cc ('k') | webrtc/video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698