Index: webrtc/video_engine/overuse_frame_detector_unittest.cc |
diff --git a/webrtc/video_engine/overuse_frame_detector_unittest.cc b/webrtc/video_engine/overuse_frame_detector_unittest.cc |
index 5524ba5a0f658745c34609eda2911b0846407bcb..f6f6bf5600506b5d490ebe105e02c45fc23a89cc 100644 |
--- a/webrtc/video_engine/overuse_frame_detector_unittest.cc |
+++ b/webrtc/video_engine/overuse_frame_detector_unittest.cc |
@@ -103,8 +103,6 @@ class OveruseFrameDetectorTest : public ::testing::Test, |
overuse_detector_->Process(); |
} |
- int AvgEncodeTimeMs() { return metrics_.avg_encode_time_ms; } |
- |
int UsagePercent() { return metrics_.encode_usage_percent; } |
CpuOveruseOptions options_; |
@@ -356,16 +354,6 @@ TEST_F(OveruseFrameDetectorTest, FrameDelay_NonMatchingSendFrameIgnored) { |
EXPECT_EQ(kProcessingTimeMs, overuse_detector_->LastProcessingTimeMs()); |
} |
-TEST_F(OveruseFrameDetectorTest, EncodedFrame) { |
- const int kInitialAvgEncodeTimeInMs = 5; |
- EXPECT_EQ(kInitialAvgEncodeTimeInMs, AvgEncodeTimeMs()); |
- for (int i = 0; i < 30; i++) { |
- clock_->AdvanceTimeMilliseconds(33); |
- overuse_detector_->FrameEncoded(2); |
- } |
- EXPECT_EQ(2, AvgEncodeTimeMs()); |
-} |
- |
// enable_encode_usage_method = true; |
// enable_extended_processing_usage = true; |
// UsagePercent() > high_encode_usage_threshold_percent => overuse. |