webrtc/api/test/create_time_controller.cc
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

27 lines
811 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.
*/
#include "api/test/create_time_controller.h"
#include <memory>
#include "api/test/time_controller.h"
#include "api/units/timestamp.h"
#include "test/time_controller/simulated_time_controller.h"
namespace webrtc {
std::unique_ptr<TimeController> CreateSimulatedTimeController() {
return std::make_unique<GlobalSimulatedTimeController>(
Timestamp::Seconds(10000));
}
} // namespace webrtc