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

Side by Side Diff: media/cast/sender/video_encoder_unittest.cc

Issue 2103043005: media/cast/sender: Rename deadline_utilization to encoder_utilization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « media/cast/sender/sender_encoded_frame.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/sender/video_encoder.h" 5 #include "media/cast/sender/video_encoder.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 << encoded_frame->frame_id; 246 << encoded_frame->frame_id;
247 } else { 247 } else {
248 if (expected_frame_id != expected_last_referenced_frame_id) { 248 if (expected_frame_id != expected_last_referenced_frame_id) {
249 EXPECT_EQ(EncodedFrame::DEPENDENT, encoded_frame->dependency); 249 EXPECT_EQ(EncodedFrame::DEPENDENT, encoded_frame->dependency);
250 } else if (video_config_.max_number_of_video_buffers_used == 1) { 250 } else if (video_config_.max_number_of_video_buffers_used == 1) {
251 EXPECT_EQ(EncodedFrame::KEY, encoded_frame->dependency); 251 EXPECT_EQ(EncodedFrame::KEY, encoded_frame->dependency);
252 } 252 }
253 EXPECT_EQ(expected_last_referenced_frame_id, 253 EXPECT_EQ(expected_last_referenced_frame_id,
254 encoded_frame->referenced_frame_id); 254 encoded_frame->referenced_frame_id);
255 EXPECT_FALSE(encoded_frame->data.empty()); 255 EXPECT_FALSE(encoded_frame->data.empty());
256 ASSERT_TRUE(std::isfinite(encoded_frame->deadline_utilization)); 256 ASSERT_TRUE(std::isfinite(encoded_frame->encoder_utilization));
257 EXPECT_LE(0.0, encoded_frame->deadline_utilization); 257 EXPECT_LE(0.0, encoded_frame->encoder_utilization);
258 ASSERT_TRUE(std::isfinite(encoded_frame->lossy_utilization)); 258 ASSERT_TRUE(std::isfinite(encoded_frame->lossy_utilization));
259 EXPECT_LE(0.0, encoded_frame->lossy_utilization); 259 EXPECT_LE(0.0, encoded_frame->lossy_utilization);
260 } 260 }
261 261
262 ++count_frames_delivered_; 262 ++count_frames_delivered_;
263 } 263 }
264 264
265 base::SimpleTestTickClock* const testing_clock_; // Owned by CastEnvironment. 265 base::SimpleTestTickClock* const testing_clock_; // Owned by CastEnvironment.
266 const scoped_refptr<FakeSingleThreadTaskRunner> task_runner_; 266 const scoped_refptr<FakeSingleThreadTaskRunner> task_runner_;
267 const scoped_refptr<CastEnvironment> cast_environment_; 267 const scoped_refptr<CastEnvironment> cast_environment_;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 #endif 422 #endif
423 return values; 423 return values;
424 } 424 }
425 } // namespace 425 } // namespace
426 426
427 INSTANTIATE_TEST_CASE_P( 427 INSTANTIATE_TEST_CASE_P(
428 , VideoEncoderTest, ::testing::ValuesIn(DetermineEncodersToTest())); 428 , VideoEncoderTest, ::testing::ValuesIn(DetermineEncodersToTest()));
429 429
430 } // namespace cast 430 } // namespace cast
431 } // namespace media 431 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/sender_encoded_frame.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698