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 SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ | 11 #ifndef SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ |
12 #define SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ | 12 #define SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ |
13 | 13 |
14 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
15 #include "webrtc/test/gmock.h" | 15 #include "webrtc/test/gmock.h" |
16 #include "webrtc/test/gtest.h" | 16 #include "webrtc/test/gtest.h" |
17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
18 #include "webrtc/voice_engine/include/voe_base.h" | 18 #include "webrtc/voice_engine/include/voe_base.h" |
19 #include "webrtc/voice_engine/include/voe_codec.h" | 19 #include "webrtc/voice_engine/include/voe_codec.h" |
20 #include "webrtc/voice_engine/include/voe_errors.h" | 20 #include "webrtc/voice_engine/include/voe_errors.h" |
21 #include "webrtc/voice_engine/include/voe_file.h" | 21 #include "webrtc/voice_engine/include/voe_file.h" |
22 #include "webrtc/voice_engine/include/voe_hardware.h" | |
23 #include "webrtc/voice_engine/include/voe_network.h" | 22 #include "webrtc/voice_engine/include/voe_network.h" |
24 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 23 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
25 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h" | 24 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h" |
26 | 25 |
27 // This convenient fixture sets up all voice engine interfaces automatically for | 26 // This convenient fixture sets up all voice engine interfaces automatically for |
28 // use by testing subclasses. It allocates each interface and releases it once | 27 // use by testing subclasses. It allocates each interface and releases it once |
29 // which means that if a tests allocates additional interfaces from the voice | 28 // which means that if a tests allocates additional interfaces from the voice |
30 // engine and forgets to release it, this test will fail in the destructor. | 29 // engine and forgets to release it, this test will fail in the destructor. |
31 // It will not call any init methods. | 30 // It will not call any init methods. |
32 // | 31 // |
(...skipping 10 matching lines...) Expand all Loading... |
43 protected: | 42 protected: |
44 // Use this sleep function to sleep in tests. | 43 // Use this sleep function to sleep in tests. |
45 void Sleep(long milliseconds); | 44 void Sleep(long milliseconds); |
46 | 45 |
47 webrtc::VoiceEngine* voice_engine_; | 46 webrtc::VoiceEngine* voice_engine_; |
48 webrtc::VoEBase* voe_base_; | 47 webrtc::VoEBase* voe_base_; |
49 webrtc::VoECodec* voe_codec_; | 48 webrtc::VoECodec* voe_codec_; |
50 webrtc::VoERTP_RTCP* voe_rtp_rtcp_; | 49 webrtc::VoERTP_RTCP* voe_rtp_rtcp_; |
51 webrtc::VoENetwork* voe_network_; | 50 webrtc::VoENetwork* voe_network_; |
52 webrtc::VoEFile* voe_file_; | 51 webrtc::VoEFile* voe_file_; |
53 webrtc::VoEHardware* voe_hardware_; | |
54 }; | 52 }; |
55 | 53 |
56 #endif // SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ | 54 #endif // SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_ |
OLD | NEW |