call_config_utils.h 1.1 KB

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