resize_test: use const_iterator where appropriate
Change-Id: I9ebfeb4947e7d7bc8af175730b0b25b2880ee26c
This commit is contained in:
parent
17b899322c
commit
bb061388a2
@ -146,7 +146,7 @@ TEST_P(ResizeTest, TestExternalResizeWorks) {
|
|||||||
ResizingVideoSource video;
|
ResizingVideoSource video;
|
||||||
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
||||||
|
|
||||||
for (std::vector<FrameInfo>::iterator info = frame_info_list_.begin();
|
for (std::vector<FrameInfo>::const_iterator info = frame_info_list_.begin();
|
||||||
info != frame_info_list_.end(); ++info) {
|
info != frame_info_list_.end(); ++info) {
|
||||||
const unsigned int frame = static_cast<unsigned>(info->pts);
|
const unsigned int frame = static_cast<unsigned>(info->pts);
|
||||||
const unsigned int expected_w = ScaleForFrameNumber(frame, kInitialWidth);
|
const unsigned int expected_w = ScaleForFrameNumber(frame, kInitialWidth);
|
||||||
@ -247,7 +247,7 @@ TEST_P(ResizeInternalTest, TestInternalResizeWorks) {
|
|||||||
cfg_.g_lag_in_frames = 0;
|
cfg_.g_lag_in_frames = 0;
|
||||||
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
|
||||||
|
|
||||||
for (std::vector<FrameInfo>::iterator info = frame_info_list_.begin();
|
for (std::vector<FrameInfo>::const_iterator info = frame_info_list_.begin();
|
||||||
info != frame_info_list_.end(); ++info) {
|
info != frame_info_list_.end(); ++info) {
|
||||||
const vpx_codec_pts_t pts = info->pts;
|
const vpx_codec_pts_t pts = info->pts;
|
||||||
if (pts >= kStepDownFrame && pts < kStepUpFrame) {
|
if (pts >= kStepDownFrame && pts < kStepUpFrame) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user