Make VideoFrameType an enum class, and move to separate file and target
Bug: webrtc:5876, webrtc:6883 Change-Id: I1435cfa9e8e54c4ba2978261048ff3fbb993ce0e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126225 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27239}
This commit is contained in:
@ -226,8 +226,8 @@ void TestOpusDtx::Perform() {
|
||||
out_filename, false, expects);
|
||||
|
||||
EXPECT_EQ(0, acm_send_->EnableOpusDtx());
|
||||
expects[kEmptyFrame] = 1;
|
||||
expects[kAudioFrameCN] = 1;
|
||||
expects[static_cast<int>(AudioFrameType::kEmptyFrame)] = 1;
|
||||
expects[static_cast<int>(AudioFrameType::kAudioFrameCN)] = 1;
|
||||
Run(webrtc::test::ResourcePath("audio_coding/testfile32kHz", "pcm"), 32000, 1,
|
||||
out_filename, true, expects);
|
||||
|
||||
@ -235,15 +235,15 @@ void TestOpusDtx::Perform() {
|
||||
out_filename = webrtc::test::OutputPath() + "testOpusDtx_outFile_stereo.pcm";
|
||||
RegisterCodec({"opus", 48000, 2, {{"stereo", "1"}}}, absl::nullopt);
|
||||
EXPECT_EQ(0, acm_send_->DisableOpusDtx());
|
||||
expects[kEmptyFrame] = 0;
|
||||
expects[kAudioFrameCN] = 0;
|
||||
expects[static_cast<int>(AudioFrameType::kEmptyFrame)] = 0;
|
||||
expects[static_cast<int>(AudioFrameType::kAudioFrameCN)] = 0;
|
||||
Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 32000,
|
||||
2, out_filename, false, expects);
|
||||
|
||||
EXPECT_EQ(0, acm_send_->EnableOpusDtx());
|
||||
|
||||
expects[kEmptyFrame] = 1;
|
||||
expects[kAudioFrameCN] = 1;
|
||||
expects[static_cast<int>(AudioFrameType::kEmptyFrame)] = 1;
|
||||
expects[static_cast<int>(AudioFrameType::kAudioFrameCN)] = 1;
|
||||
Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 32000,
|
||||
2, out_filename, true, expects);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user