Removing trace checks in VoETestManager.
Trace checks in the ctor and dtor of VoETestManager are removed, since they can fail if there are more than one VoETestManager (or VoE) used in a test. BUG= Review URL: https://codereview.webrtc.org/1407883007 Cr-Commit-Position: refs/heads/master@{#10507}
This commit is contained in:
parent
275d255e21
commit
e56c763691
@ -117,14 +117,6 @@ bool VoETestManager::Init() {
|
||||
if (initialized_)
|
||||
return true;
|
||||
|
||||
if (VoiceEngine::SetTraceFile(NULL) != -1) {
|
||||
// should not be possible to call a Trace method before the VoE is
|
||||
// created
|
||||
TEST_LOG("\nError at line: %i (VoiceEngine::SetTraceFile()"
|
||||
"should fail)!\n", __LINE__);
|
||||
return false;
|
||||
}
|
||||
|
||||
voice_engine_ = VoiceEngine::Create();
|
||||
if (!voice_engine_) {
|
||||
TEST_LOG("Failed to create VoiceEngine\n");
|
||||
@ -230,11 +222,6 @@ int VoETestManager::ReleaseInterfaces() {
|
||||
releaseOK = false;
|
||||
}
|
||||
|
||||
if (VoiceEngine::SetTraceFile(NULL) != -1) {
|
||||
TEST_LOG("\nError at line: %i (VoiceEngine::SetTraceFile()"
|
||||
"should fail)!\n", __LINE__);
|
||||
}
|
||||
|
||||
return (releaseOK == true) ? 0 : -1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user