Benjamin Wright | 8efafdf | 2019-01-11 18:48:42 | [diff] [blame] | 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 VideoReceiveStream::Config back |
| 21 | // into a valid object. This will not initialize the decoders or the renderer. |
| 22 | VideoReceiveStream::Config ParseVideoReceiveStreamJsonConfig( |
| 23 | webrtc::Transport* transport, |
| 24 | const Json::Value& json); |
| 25 | |
Benjamin Wright | 9db8b88 | 2019-01-14 23:30:20 | [diff] [blame] | 26 | // Serialize a VideoReceiveStream::Config into a Json object. |
| 27 | Json::Value GenerateVideoReceiveStreamJsonConfig( |
| 28 | const VideoReceiveStream::Config& config); |
| 29 | |
Benjamin Wright | 8efafdf | 2019-01-11 18:48:42 | [diff] [blame] | 30 | } // namespace test |
| 31 | } // namespace webrtc |
| 32 | |
| 33 | #endif // TEST_CALL_CONFIG_UTILS_H_ |