1 /* 2 * Copyright (c) 2019 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 TEST_CALL_CONFIG_UTILS_H_ 12 #define TEST_CALL_CONFIG_UTILS_H_ 13 14 #include "call/video_receive_stream.h" 15 #include "rtc_base/strings/json.h" 16 17 namespace webrtc { 18 namespace test { 19 20 // Deserializes a JSON representation of the VideoReceiveStreamInterface::Config 21 // back into a valid object. This will not initialize the decoders or the 22 // renderer. 23 VideoReceiveStreamInterface::Config ParseVideoReceiveStreamJsonConfig( 24 webrtc::Transport* transport, 25 const Json::Value& json); 26 27 // Serialize a VideoReceiveStreamInterface::Config into a Json object. 28 Json::Value GenerateVideoReceiveStreamJsonConfig( 29 const VideoReceiveStreamInterface::Config& config); 30 31 } // namespace test 32 } // namespace webrtc 33 34 #endif // TEST_CALL_CONFIG_UTILS_H_ 35