webrtc/pc/test/simulcast_layer_util.h
Henrik Boström da9e284308 Rename simulcast flow tests: PeerConnectionEncodingsIntegrationTest.
This is a pure rename+move of PeerConnectionSimulcastMediaFlowTests.
The reason for renaming is to reflect that a) this is an integration
test, not a unit test, and b) not all of the tests use simulcast (some
use a single encoding, i.e. singlecast or SVC).

Shared helper functions between PeerConnectionEncodingsIntegrationTest
and PeerConnectionSimulcastTests are placed in a test-only util file.

# Already pass, no need to wait for chromium bots for webrtc testonly CL
NOTRY=True

Bug: webrtc:15063
Change-Id: Iec90d1a7ab712be1395c7644723422c8c6179974
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/300540
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39799}
2023-04-11 07:46:42 +00:00

39 lines
1.2 KiB
C++

/*
* Copyright 2023 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef PC_TEST_SIMULCAST_LAYER_UTIL_H_
#define PC_TEST_SIMULCAST_LAYER_UTIL_H_
#include <string>
#include <vector>
#include "api/jsep.h"
#include "api/rtp_transceiver_interface.h"
#include "pc/session_description.h"
#include "pc/simulcast_description.h"
namespace webrtc {
std::vector<cricket::SimulcastLayer> CreateLayers(
const std::vector<std::string>& rids,
const std::vector<bool>& active);
std::vector<cricket::SimulcastLayer> CreateLayers(
const std::vector<std::string>& rids,
bool active);
RtpTransceiverInit CreateTransceiverInit(
const std::vector<cricket::SimulcastLayer>& layers);
cricket::SimulcastDescription RemoveSimulcast(SessionDescriptionInterface* sd);
} // namespace webrtc
#endif // PC_TEST_SIMULCAST_LAYER_UTIL_H_