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/base/platform_thread.h" | 14 #include "webrtc/base/platform_thread.h" |
| 15 #include "webrtc/base/scoped_ptr.h" |
15 | 16 |
16 namespace voetest { | 17 namespace voetest { |
17 // TODO(andrew): using directives are not permitted. | |
18 using namespace webrtc; | |
19 | 18 |
20 class VoETestManager; | 19 class VoETestManager; |
21 | 20 |
22 class VoEStressTest { | 21 class VoEStressTest { |
23 public: | 22 public: |
24 VoEStressTest(VoETestManager& mgr) : _mgr(mgr) { | 23 VoEStressTest(VoETestManager& mgr) : _mgr(mgr) { |
25 } | 24 } |
26 ~VoEStressTest() { | 25 ~VoEStressTest() { |
27 } | 26 } |
28 int DoTest(); | 27 int DoTest(); |
29 | 28 |
30 private: | 29 private: |
31 int MenuSelection(); | 30 int MenuSelection(); |
32 int StartStopTest(); | 31 int StartStopTest(); |
33 int CreateDeleteChannelsTest(); | 32 int CreateDeleteChannelsTest(); |
34 int MultipleThreadsTest(); | 33 int MultipleThreadsTest(); |
35 | 34 |
36 static bool RunExtraApi(void* ptr); | 35 static bool RunExtraApi(void* ptr); |
37 bool ProcessExtraApi(); | 36 bool ProcessExtraApi(); |
38 | 37 |
39 VoETestManager& _mgr; | 38 VoETestManager& _mgr; |
40 | 39 |
41 rtc::scoped_ptr<PlatformThread> _ptrExtraApiThread; | 40 // TODO(pbos): Remove scoped_ptr and use PlatformThread directly. |
| 41 rtc::scoped_ptr<rtc::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 |