blob: 186c67fd8650e5e1774655a24a9744f942b871de [file] [log] [blame]
Benjamin Wright8efafdf2019-01-11 10:48:42 -08001/*
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
20// Deserializes a JSON representation of the VideoReceiveStream::Config back
21// into a valid object. This will not initialize the decoders or the renderer.
22VideoReceiveStream::Config ParseVideoReceiveStreamJsonConfig(
23 webrtc::Transport* transport,
24 const Json::Value& json);
25
Benjamin Wright9db8b882019-01-14 15:30:20 -080026// Serialize a VideoReceiveStream::Config into a Json object.
27Json::Value GenerateVideoReceiveStreamJsonConfig(
28 const VideoReceiveStream::Config& config);
29
Benjamin Wright8efafdf2019-01-11 10:48:42 -080030} // namespace test
31} // namespace webrtc
32
33#endif // TEST_CALL_CONFIG_UTILS_H_