
This new helper class writes RTP packets to file in rtpdump format. A unit test is also included. The new test class is used while re-writing the test tool RTPcat. BUG=2692 R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/28099004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7768 4adac7df-926f-26a2-2b94-8c16560cd09d
167 lines
4.7 KiB
Python
167 lines
4.7 KiB
Python
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
{
|
|
'includes': [
|
|
'../build/common.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'webrtc_test_common',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'call_test.cc',
|
|
'call_test.h',
|
|
'configurable_frame_size_encoder.cc',
|
|
'configurable_frame_size_encoder.h',
|
|
'direct_transport.cc',
|
|
'direct_transport.h',
|
|
'encoder_settings.cc',
|
|
'encoder_settings.h',
|
|
'fake_audio_device.cc',
|
|
'fake_audio_device.h',
|
|
'fake_decoder.cc',
|
|
'fake_decoder.h',
|
|
'fake_encoder.cc',
|
|
'fake_encoder.h',
|
|
'fake_network_pipe.cc',
|
|
'fake_network_pipe.h',
|
|
'frame_generator_capturer.cc',
|
|
'frame_generator_capturer.h',
|
|
'mock_transport.h',
|
|
'null_transport.cc',
|
|
'null_transport.h',
|
|
'rtp_rtcp_observer.h',
|
|
'run_loop.cc',
|
|
'run_loop.h',
|
|
'statistics.cc',
|
|
'statistics.h',
|
|
'vcm_capturer.cc',
|
|
'vcm_capturer.h',
|
|
'video_capturer.cc',
|
|
'video_capturer.h',
|
|
'win/run_loop_win.cc',
|
|
],
|
|
'conditions': [
|
|
['OS=="win"', {
|
|
'sources!': [
|
|
'run_loop.cc',
|
|
],
|
|
}],
|
|
],
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
|
|
'<(webrtc_root)/base/base.gyp:rtc_base',
|
|
'<(webrtc_root)/modules/modules.gyp:media_file',
|
|
'<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
|
|
'<(webrtc_root)/test/test.gyp:frame_generator',
|
|
'<(webrtc_root)/test/test.gyp:test_support',
|
|
'<(webrtc_root)/test/test.gyp:rtp_test_utils',
|
|
'<(webrtc_root)/webrtc.gyp:webrtc',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'webrtc_test_renderer',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'gl/gl_renderer.cc',
|
|
'gl/gl_renderer.h',
|
|
'linux/glx_renderer.cc',
|
|
'linux/glx_renderer.h',
|
|
'linux/video_renderer_linux.cc',
|
|
'mac/video_renderer_mac.h',
|
|
'mac/video_renderer_mac.mm',
|
|
'null_platform_renderer.cc',
|
|
'video_renderer.cc',
|
|
'video_renderer.h',
|
|
'win/d3d_renderer.cc',
|
|
'win/d3d_renderer.h',
|
|
],
|
|
'conditions': [
|
|
['OS=="linux"', {
|
|
'sources!': [
|
|
'null_platform_renderer.cc',
|
|
],
|
|
}],
|
|
['OS=="mac"', {
|
|
'sources!': [
|
|
'null_platform_renderer.cc',
|
|
],
|
|
}],
|
|
['OS!="linux" and OS!="mac"', {
|
|
'sources!' : [
|
|
'gl/gl_renderer.cc',
|
|
'gl/gl_renderer.h',
|
|
],
|
|
}],
|
|
['OS=="win"', {
|
|
'sources!': [
|
|
'null_platform_renderer.cc',
|
|
],
|
|
'include_dirs': [
|
|
'<(directx_sdk_path)/Include',
|
|
],
|
|
}],
|
|
],
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'<(webrtc_root)/modules/modules.gyp:media_file',
|
|
'<(webrtc_root)/test/test.gyp:frame_generator',
|
|
'<(webrtc_root)/test/test.gyp:test_support',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'conditions': [
|
|
['OS=="linux"', {
|
|
'libraries': [
|
|
'-lXext',
|
|
'-lX11',
|
|
'-lGL',
|
|
],
|
|
}],
|
|
['OS=="android"', {
|
|
'libraries' : [
|
|
'-lGLESv2', '-llog',
|
|
],
|
|
}],
|
|
['OS=="mac"', {
|
|
'xcode_settings' : {
|
|
'OTHER_LDFLAGS' : [
|
|
'-framework Cocoa',
|
|
'-framework OpenGL',
|
|
'-framework CoreVideo',
|
|
],
|
|
},
|
|
}],
|
|
],
|
|
},
|
|
},
|
|
],
|
|
'conditions': [
|
|
['include_tests==1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'webrtc_test_common_unittests',
|
|
'type': '<(gtest_target_type)',
|
|
'dependencies': [
|
|
'webrtc_test_common',
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'<(DEPTH)/testing/gmock.gyp:gmock',
|
|
'<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
|
],
|
|
'sources': [
|
|
'fake_network_pipe_unittest.cc',
|
|
'rtp_file_reader_unittest.cc',
|
|
'rtp_file_writer_unittest.cc',
|
|
],
|
|
},
|
|
], #targets
|
|
}], # include_tests
|
|
], # conditions
|
|
}
|