OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 _playoutFile8 = webrtc::test::ResourcePath("audio_device\\audio_short8", | 587 _playoutFile8 = webrtc::test::ResourcePath("audio_device\\audio_short8", |
588 "pcm"); | 588 "pcm"); |
589 } | 589 } |
590 | 590 |
591 FuncTestManager::~FuncTestManager() | 591 FuncTestManager::~FuncTestManager() |
592 { | 592 { |
593 } | 593 } |
594 | 594 |
595 int32_t FuncTestManager::Init() | 595 int32_t FuncTestManager::Init() |
596 { | 596 { |
597 EXPECT_TRUE((_processThread = rtc::ScopedToUnique( | 597 EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) != |
598 ProcessThread::Create("ProcessThread"))) != NULL); | 598 NULL); |
599 if (_processThread == NULL) | 599 if (_processThread == NULL) { |
600 { | 600 return -1; |
601 return -1; | |
602 } | 601 } |
603 _processThread->Start(); | 602 _processThread->Start(); |
604 | 603 |
605 // create the Audio Device module | 604 // create the Audio Device module |
606 EXPECT_TRUE((_audioDevice = AudioDeviceModuleImpl::Create( | 605 EXPECT_TRUE((_audioDevice = AudioDeviceModuleImpl::Create( |
607 555, ADM_AUDIO_LAYER)) != NULL); | 606 555, ADM_AUDIO_LAYER)) != NULL); |
608 if (_audioDevice == NULL) | 607 if (_audioDevice == NULL) |
609 { | 608 { |
610 return -1; | 609 return -1; |
611 } | 610 } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 // release the AudioDeviceModule object | 824 // release the AudioDeviceModule object |
826 if (_audioDevice) | 825 if (_audioDevice) |
827 { | 826 { |
828 EXPECT_EQ(0, _audioDevice->Release()); | 827 EXPECT_EQ(0, _audioDevice->Release()); |
829 _audioDevice = NULL; | 828 _audioDevice = NULL; |
830 } | 829 } |
831 | 830 |
832 // ================================================== | 831 // ================================================== |
833 // Next, try to make fresh start with new audio layer | 832 // Next, try to make fresh start with new audio layer |
834 | 833 |
835 EXPECT_TRUE((_processThread = rtc::ScopedToUnique( | 834 EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) != |
836 ProcessThread::Create("ProcessThread"))) != NULL); | 835 NULL); |
837 if (_processThread == NULL) | 836 if (_processThread == NULL) |
838 { | 837 { |
839 return -1; | 838 return -1; |
840 } | 839 } |
841 _processThread->Start(); | 840 _processThread->Start(); |
842 | 841 |
843 // create the Audio Device module based on selected audio layer | 842 // create the Audio Device module based on selected audio layer |
844 if (tryWinWave) | 843 if (tryWinWave) |
845 { | 844 { |
846 _audioDevice = AudioDeviceModuleImpl::Create( | 845 _audioDevice = AudioDeviceModuleImpl::Create( |
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2738 | 2737 |
2739 TEST_LOG("\n"); | 2738 TEST_LOG("\n"); |
2740 PRINT_TEST_RESULTS; | 2739 PRINT_TEST_RESULTS; |
2741 | 2740 |
2742 return 0; | 2741 return 0; |
2743 } | 2742 } |
2744 | 2743 |
2745 } // namespace webrtc | 2744 } // namespace webrtc |
2746 | 2745 |
2747 // EOF | 2746 // EOF |
OLD | NEW |