OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H |
12 #define WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | 12 #define WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H |
13 | 13 |
14 #include "webrtc/system_wrappers/include/thread_wrapper.h" | 14 #include "webrtc/base/platform_thread.h" |
15 | 15 |
16 namespace voetest { | 16 namespace voetest { |
17 // TODO(andrew): using directives are not permitted. | 17 // TODO(andrew): using directives are not permitted. |
18 using namespace webrtc; | 18 using namespace webrtc; |
19 | 19 |
20 class VoETestManager; | 20 class VoETestManager; |
21 | 21 |
22 class VoEStressTest { | 22 class VoEStressTest { |
23 public: | 23 public: |
24 VoEStressTest(VoETestManager& mgr) : _mgr(mgr) { | 24 VoEStressTest(VoETestManager& mgr) : _mgr(mgr) { |
25 } | 25 } |
26 ~VoEStressTest() { | 26 ~VoEStressTest() { |
27 } | 27 } |
28 int DoTest(); | 28 int DoTest(); |
29 | 29 |
30 private: | 30 private: |
31 int MenuSelection(); | 31 int MenuSelection(); |
32 int StartStopTest(); | 32 int StartStopTest(); |
33 int CreateDeleteChannelsTest(); | 33 int CreateDeleteChannelsTest(); |
34 int MultipleThreadsTest(); | 34 int MultipleThreadsTest(); |
35 | 35 |
36 static bool RunExtraApi(void* ptr); | 36 static bool RunExtraApi(void* ptr); |
37 bool ProcessExtraApi(); | 37 bool ProcessExtraApi(); |
38 | 38 |
39 VoETestManager& _mgr; | 39 VoETestManager& _mgr; |
40 | 40 |
41 rtc::scoped_ptr<ThreadWrapper> _ptrExtraApiThread; | 41 rtc::scoped_ptr<PlatformThread> _ptrExtraApiThread; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace voetest | 44 } // namespace voetest |
45 | 45 |
46 #endif // WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H | 46 #endif // WEBRTC_VOICE_ENGINE_VOE_STRESS_TEST_H |
OLD | NEW |