| 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 |
| 15 | #include "api/call/call_factory_interface.h" |
| 16 | #include "api/test/time_controller.h" |
| 17 |
| 18 | namespace webrtc { |
| 19 |
| 20 | // Creates a time coltroller that wraps |alarm|. |
| 21 | std::unique_ptr<TimeController> CreateTimeController( |
| 22 | ControlledAlarmClock* alarm); |
| 23 |
| 24 | // Creates a time controller that runs in simulated time. |
| 25 | std::unique_ptr<TimeController> CreateSimulatedTimeController(); |
| 26 |
| 27 | // This is creates a call factory that creates Call instances that are backed by |
| 28 | // a time controller. |
| 29 | std::unique_ptr<CallFactoryInterface> CreateTimeControllerBasedCallFactory( |
| 30 | TimeController* time_controller); |
| 31 |
| 32 | } // namespace webrtc |
| 33 |
| 34 | #endif // API_TEST_CREATE_TIME_CONTROLLER_H_ |
| 35 |