blob: f4bd3f2c7b451ec903d51f6556c5ff21a2327df9 [file] [log] [blame]
Bjorn A Mellemc4f86542019-11-21 10:37:18 -08001/*
2 * Copyright 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 API_TEST_CREATE_TIME_CONTROLLER_H_
11#define API_TEST_CREATE_TIME_CONTROLLER_H_
12
13#include <memory>
14
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +010015#include "api/call/call_factory_interface.h"
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080016#include "api/test/time_controller.h"
17
18namespace webrtc {
19
20std::unique_ptr<TimeController> CreateTimeController(
21 ControlledAlarmClock* alarm);
22
Sebastian Jansson7aa2edf2020-01-23 10:00:33 +010023// This is creates a call factory that creates Call instances that are backed by
24// a time controller.
25std::unique_ptr<CallFactoryInterface> CreateTimeControllerBasedCallFactory(
26 TimeController* time_controller);
27
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080028} // namespace webrtc
29
30#endif // API_TEST_CREATE_TIME_CONTROLLER_H_