Ivo Creusen | 55de08e | 2018-09-03 11:49:27 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 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 | |
| 11 | #ifndef API_TEST_NETEQ_SIMULATOR_FACTORY_H_ |
| 12 | #define API_TEST_NETEQ_SIMULATOR_FACTORY_H_ |
| 13 | |
| 14 | #include <memory> |
| 15 | |
| 16 | #include "api/test/neteq_simulator.h" |
| 17 | |
| 18 | namespace webrtc { |
| 19 | namespace test { |
| 20 | |
| 21 | class NetEqTestFactory; |
| 22 | |
| 23 | class NetEqSimulatorFactory { |
| 24 | public: |
| 25 | NetEqSimulatorFactory(); |
| 26 | ~NetEqSimulatorFactory(); |
| 27 | // This function takes the same arguments as the neteq_rtpplay utility. |
| 28 | std::unique_ptr<NetEqSimulator> CreateSimulator(int argc, char* argv[]); |
| 29 | |
| 30 | private: |
| 31 | std::unique_ptr<NetEqTestFactory> factory_; |
| 32 | }; |
| 33 | |
| 34 | } // namespace test |
| 35 | } // namespace webrtc |
| 36 | |
| 37 | #endif // API_TEST_NETEQ_SIMULATOR_FACTORY_H_ |