Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 1 | /* |
| 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 Jansson | 7aa2edf | 2020-01-23 10:00:33 +0100 | [diff] [blame^] | 15 | #include "api/call/call_factory_interface.h" |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 16 | #include "api/test/time_controller.h" |
| 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | std::unique_ptr<TimeController> CreateTimeController( |
| 21 | ControlledAlarmClock* alarm); |
| 22 | |
Sebastian Jansson | 7aa2edf | 2020-01-23 10:00:33 +0100 | [diff] [blame^] | 23 | // This is creates a call factory that creates Call instances that are backed by |
| 24 | // a time controller. |
| 25 | std::unique_ptr<CallFactoryInterface> CreateTimeControllerBasedCallFactory( |
| 26 | TimeController* time_controller); |
| 27 | |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 28 | } // namespace webrtc |
| 29 | |
| 30 | #endif // API_TEST_CREATE_TIME_CONTROLLER_H_ |