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

Side by Side Diff: webrtc/modules/video_coding/test/receiver_tests.h

Issue 2064523002: GN: Add video_engine_tests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: audio_receive_stream_unittest compile Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 11 matching lines...) Expand all
22 #include "webrtc/modules/video_coding/test/video_source.h" 22 #include "webrtc/modules/video_coding/test/video_source.h"
23 #include "webrtc/typedefs.h" 23 #include "webrtc/typedefs.h"
24 24
25 class RtpDataCallback : public webrtc::NullRtpData { 25 class RtpDataCallback : public webrtc::NullRtpData {
26 public: 26 public:
27 explicit RtpDataCallback(webrtc::VideoCodingModule* vcm) : vcm_(vcm) {} 27 explicit RtpDataCallback(webrtc::VideoCodingModule* vcm) : vcm_(vcm) {}
28 virtual ~RtpDataCallback() {} 28 virtual ~RtpDataCallback() {}
29 29
30 int32_t OnReceivedPayloadData( 30 int32_t OnReceivedPayloadData(
31 const uint8_t* payload_data, 31 const uint8_t* payload_data,
32 const size_t payload_size, 32 size_t payload_size,
33 const webrtc::WebRtcRTPHeader* rtp_header) override { 33 const webrtc::WebRtcRTPHeader* rtp_header) override {
34 return vcm_->IncomingPacket(payload_data, payload_size, *rtp_header); 34 return vcm_->IncomingPacket(payload_data, payload_size, *rtp_header);
35 } 35 }
36 36
37 private: 37 private:
38 webrtc::VideoCodingModule* vcm_; 38 webrtc::VideoCodingModule* vcm_;
39 }; 39 };
40 40
41 int RtpPlay(const CmdArgs& args); 41 int RtpPlay(const CmdArgs& args);
42 42
43 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RECEIVER_TESTS_H_ 43 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RECEIVER_TESTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698