Test RTC_DCHECK_IS_ON instead of checking DCHECK_ALWAYS_ON everywhere
The former is always defined (by webrtc/base/checks.h) to either 0 or 1, whereas the latter isn't necessarily defined. NOTRY=true BUG=webrtc:6451 Review-Url: https://codereview.webrtc.org/2384693002 Cr-Commit-Position: refs/heads/master@{#14474}
This commit is contained in:
@ -317,8 +317,8 @@ TEST_F(AudioCodingModuleTestOldApi, VerifyOutputFrame) {
|
||||
// with clang debug builds.
|
||||
// TODO(tommi): Re-enable when we've figured out what the problem is.
|
||||
// http://crbug.com/615050
|
||||
#if !defined(WEBRTC_WIN) && defined(__clang__) && !defined(NDEBUG)
|
||||
#if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
|
||||
#if !defined(WEBRTC_WIN) && defined(__clang__) && RTC_DCHECK_IS_ON && \
|
||||
GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
|
||||
TEST_F(AudioCodingModuleTestOldApi, FailOnZeroDesiredFrequency) {
|
||||
AudioFrame audio_frame;
|
||||
bool muted;
|
||||
@ -326,7 +326,6 @@ TEST_F(AudioCodingModuleTestOldApi, FailOnZeroDesiredFrequency) {
|
||||
"dst_sample_rate_hz");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Checks that the transport callback is invoked once for each speech packet.
|
||||
// Also checks that the frame type is kAudioFrameSpeech.
|
||||
|
||||
Reference in New Issue
Block a user