blob: 97cfdc339646a4e842d0db4df1f283a7ebf32333 [file] [log] [blame]
Benjamin Wright8efafdf2019-01-11 18:48:421/*
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
17namespace webrtc {
18namespace test {
19
Tommif6f45432022-05-20 13:21:2020// Deserializes a JSON representation of the VideoReceiveStreamInterface::Config
21// back into a valid object. This will not initialize the decoders or the
22// renderer.
23VideoReceiveStreamInterface::Config ParseVideoReceiveStreamJsonConfig(
Benjamin Wright8efafdf2019-01-11 18:48:4224 webrtc::Transport* transport,
25 const Json::Value& json);
26
Tommif6f45432022-05-20 13:21:2027// Serialize a VideoReceiveStreamInterface::Config into a Json object.
Benjamin Wright9db8b882019-01-14 23:30:2028Json::Value GenerateVideoReceiveStreamJsonConfig(
Tommif6f45432022-05-20 13:21:2029 const VideoReceiveStreamInterface::Config& config);
Benjamin Wright9db8b882019-01-14 23:30:2030
Benjamin Wright8efafdf2019-01-11 18:48:4231} // namespace test
32} // namespace webrtc
33
34#endif // TEST_CALL_CONFIG_UTILS_H_