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

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

Issue 2748183006: Delete unused test code in modules/video_coding/test/ (Closed)
Patch Set: Make NullEvent private so that more tests won't start using it. Created 3 years, 9 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
(Empty)
1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_TEST_RECEIVER_TESTS_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_TEST_RECEIVER_TESTS_H_
13
14 #include <stdio.h>
15 #include <string>
16
17 #include "webrtc/common_types.h"
18 #include "webrtc/modules/include/module_common_types.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
20 #include "webrtc/modules/video_coding/include/video_coding.h"
21 #include "webrtc/modules/video_coding/test/test_util.h"
22 #include "webrtc/typedefs.h"
23
24 class RtpDataCallback : public webrtc::NullRtpData {
25 public:
26 explicit RtpDataCallback(webrtc::VideoCodingModule* vcm) : vcm_(vcm) {}
27 virtual ~RtpDataCallback() {}
28
29 int32_t OnReceivedPayloadData(
30 const uint8_t* payload_data,
31 size_t payload_size,
32 const webrtc::WebRtcRTPHeader* rtp_header) override {
33 return vcm_->IncomingPacket(payload_data, payload_size, *rtp_header);
34 }
35
36 private:
37 webrtc::VideoCodingModule* vcm_;
38 };
39
40 int RtpPlay(const CmdArgs& args);
41
42 #endif // WEBRTC_MODULES_VIDEO_CODING_TEST_RECEIVER_TESTS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/test/plotTimingTest.m ('k') | webrtc/modules/video_coding/test/rtp_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698