| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 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 WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | |
| 12 #define WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | |
| 13 | |
| 14 #include <memory> | |
| 15 | |
| 16 #include "webrtc/base/platform_thread.h" | |
| 17 | |
| 18 namespace voetest { | |
| 19 | |
| 20 class VoETestManager; | |
| 21 | |
| 22 class VoEStressTest { | |
| 23 public: | |
| 24 VoEStressTest(VoETestManager& mgr) : _mgr(mgr) { | |
| 25 } | |
| 26 ~VoEStressTest() { | |
| 27 } | |
| 28 int DoTest(); | |
| 29 | |
| 30 private: | |
| 31 int MenuSelection(); | |
| 32 int StartStopTest(); | |
| 33 int CreateDeleteChannelsTest(); | |
| 34 int MultipleThreadsTest(); | |
| 35 | |
| 36 static bool RunExtraApi(void* ptr); | |
| 37 bool ProcessExtraApi(); | |
| 38 | |
| 39 VoETestManager& _mgr; | |
| 40 | |
| 41 // TODO(pbos): Remove unique_ptr and use PlatformThread directly. | |
| 42 std::unique_ptr<rtc::PlatformThread> _ptrExtraApiThread; | |
| 43 }; | |
| 44 | |
| 45 } // namespace voetest | |
| 46 | |
| 47 #endif // WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | |
| OLD | NEW |