webrtc/api/test/create_time_controller.h
Danil Chapovalov 83dac84ea0 Delete deprecated EnableMediaWithDefaultsAndTimeController
Custom clock for testing can be injected via
PeerConnectionFactoryDependencies::env

Bug: None
Change-Id: I35a9de6d974f12524ca7335434cd94aca9ee0570
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/390680
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44610}
2025-05-13 10:56:51 -07:00

25 lines
768 B
C++

/*
* 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>
#include "api/test/time_controller.h"
namespace webrtc {
// Creates a time controller that runs in simulated time.
std::unique_ptr<TimeController> CreateSimulatedTimeController();
} // namespace webrtc
#endif // API_TEST_CREATE_TIME_CONTROLLER_H_