| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 _playoutFile8 = webrtc::test::ResourcePath("audio_device\\audio_short8", | 613 _playoutFile8 = webrtc::test::ResourcePath("audio_device\\audio_short8", |
| 614 "pcm"); | 614 "pcm"); |
| 615 } | 615 } |
| 616 | 616 |
| 617 FuncTestManager::~FuncTestManager() | 617 FuncTestManager::~FuncTestManager() |
| 618 { | 618 { |
| 619 } | 619 } |
| 620 | 620 |
| 621 int32_t FuncTestManager::Init() | 621 int32_t FuncTestManager::Init() |
| 622 { | 622 { |
| 623 EXPECT_TRUE((_processThread = ProcessThread::Create()) != NULL); | 623 EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) != |
| 624 NULL); |
| 624 if (_processThread == NULL) | 625 if (_processThread == NULL) |
| 625 { | 626 { |
| 626 return -1; | 627 return -1; |
| 627 } | 628 } |
| 628 _processThread->Start(); | 629 _processThread->Start(); |
| 629 | 630 |
| 630 // create the Audio Device module | 631 // create the Audio Device module |
| 631 EXPECT_TRUE((_audioDevice = AudioDeviceModuleImpl::Create( | 632 EXPECT_TRUE((_audioDevice = AudioDeviceModuleImpl::Create( |
| 632 555, ADM_AUDIO_LAYER)) != NULL); | 633 555, ADM_AUDIO_LAYER)) != NULL); |
| 633 if (_audioDevice == NULL) | 634 if (_audioDevice == NULL) |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 // release the AudioDeviceModule object | 851 // release the AudioDeviceModule object |
| 851 if (_audioDevice) | 852 if (_audioDevice) |
| 852 { | 853 { |
| 853 EXPECT_EQ(0, _audioDevice->Release()); | 854 EXPECT_EQ(0, _audioDevice->Release()); |
| 854 _audioDevice = NULL; | 855 _audioDevice = NULL; |
| 855 } | 856 } |
| 856 | 857 |
| 857 // ================================================== | 858 // ================================================== |
| 858 // Next, try to make fresh start with new audio layer | 859 // Next, try to make fresh start with new audio layer |
| 859 | 860 |
| 860 EXPECT_TRUE((_processThread = ProcessThread::Create()) != NULL); | 861 EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) != |
| 862 NULL); |
| 861 if (_processThread == NULL) | 863 if (_processThread == NULL) |
| 862 { | 864 { |
| 863 return -1; | 865 return -1; |
| 864 } | 866 } |
| 865 _processThread->Start(); | 867 _processThread->Start(); |
| 866 | 868 |
| 867 // create the Audio Device module based on selected audio layer | 869 // create the Audio Device module based on selected audio layer |
| 868 if (tryWinWave) | 870 if (tryWinWave) |
| 869 { | 871 { |
| 870 _audioDevice = AudioDeviceModuleImpl::Create( | 872 _audioDevice = AudioDeviceModuleImpl::Create( |
| (...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 | 2764 |
| 2763 TEST_LOG("\n"); | 2765 TEST_LOG("\n"); |
| 2764 PRINT_TEST_RESULTS; | 2766 PRINT_TEST_RESULTS; |
| 2765 | 2767 |
| 2766 return 0; | 2768 return 0; |
| 2767 } | 2769 } |
| 2768 | 2770 |
| 2769 } // namespace webrtc | 2771 } // namespace webrtc |
| 2770 | 2772 |
| 2771 // EOF | 2773 // EOF |
| OLD | NEW |