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

Side by Side Diff: content/renderer/media/gpu/rtc_video_encoder_unittest.cc

Issue 2855783003: Fix dependencies on deprecated webrtc videoframe features. (Closed)
Patch Set: Add missing gn dependency on video_frame_api. Created 3 years, 7 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 | « no previous file | content/renderer/media/webrtc/media_stream_remote_video_source.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "content/renderer/media/gpu/rtc_video_encoder.h" 12 #include "content/renderer/media/gpu/rtc_video_encoder.h"
13 #include "media/renderers/mock_gpu_video_accelerator_factories.h" 13 #include "media/renderers/mock_gpu_video_accelerator_factories.h"
14 #include "media/video/mock_video_encode_accelerator.h" 14 #include "media/video/mock_video_encode_accelerator.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/libyuv/include/libyuv/planar_functions.h" 16 #include "third_party/libyuv/include/libyuv/planar_functions.h"
17 #include "third_party/webrtc/api/video/i420_buffer.h"
17 #include "third_party/webrtc/api/video_codecs/video_encoder.h" 18 #include "third_party/webrtc/api/video_codecs/video_encoder.h"
18 #include "third_party/webrtc/modules/video_coding/include/video_codec_interface. h" 19 #include "third_party/webrtc/modules/video_coding/include/video_codec_interface. h"
19 20
20 using ::testing::_; 21 using ::testing::_;
21 using ::testing::AtLeast; 22 using ::testing::AtLeast;
22 using ::testing::Invoke; 23 using ::testing::Invoke;
23 using ::testing::Return; 24 using ::testing::Return;
24 using ::testing::SaveArg; 25 using ::testing::SaveArg;
25 using ::testing::Values; 26 using ::testing::Values;
26 using ::testing::WithArgs; 27 using ::testing::WithArgs;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 rtc_frame.set_ntp_time_ms(4567891); 271 rtc_frame.set_ntp_time_ms(4567891);
271 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, 272 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK,
272 rtc_encoder_->Encode(rtc_frame, nullptr, &frame_types)); 273 rtc_encoder_->Encode(rtc_frame, nullptr, &frame_types));
273 } 274 }
274 275
275 INSTANTIATE_TEST_CASE_P(CodecProfiles, 276 INSTANTIATE_TEST_CASE_P(CodecProfiles,
276 RTCVideoEncoderTest, 277 RTCVideoEncoderTest,
277 Values(webrtc::kVideoCodecVP8, 278 Values(webrtc::kVideoCodecVP8,
278 webrtc::kVideoCodecH264)); 279 webrtc::kVideoCodecH264));
279 } // namespace content 280 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webrtc/media_stream_remote_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698