2019-11-21 10:37:18 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2019 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 API_TEST_CREATE_TIME_CONTROLLER_H_
|
|
|
|
|
#define API_TEST_CREATE_TIME_CONTROLLER_H_
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
2023-11-03 12:51:31 +01:00
|
|
|
#include "api/peer_connection_interface.h"
|
2019-11-21 10:37:18 -08:00
|
|
|
#include "api/test/time_controller.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2020-02-03 09:30:07 +01:00
|
|
|
// Creates a time controller that runs in simulated time.
|
|
|
|
|
std::unique_ptr<TimeController> CreateSimulatedTimeController();
|
|
|
|
|
|
2023-11-03 12:51:31 +01:00
|
|
|
// Adjusts media `deps` to use clock `time_controller` provides, fills media
|
|
|
|
|
// related dependencies, and enables media support for a PeerConnectionFactory
|
|
|
|
|
// created from `deps`.
|
|
|
|
|
void EnableMediaWithDefaultsAndTimeController(
|
|
|
|
|
TimeController& time_controller,
|
|
|
|
|
PeerConnectionFactoryDependencies& deps);
|
2020-01-23 10:00:33 +01:00
|
|
|
|
2019-11-21 10:37:18 -08:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // API_TEST_CREATE_TIME_CONTROLLER_H_
|