Remove DISABLED_ON_ macros.
Macro incorrectly displays DISABLED_ON_ANDROID in test names for parameterized tests under --gtest_list_tests, causing tests to be disabled on all platforms since they contain the DISABLED_ prefix rather than their expanded variants. This expands the macro variants to inline if they're disabled or not, and removes building some tests under configurations where they should fail, instead of building them but disabling them by default. The change also removes gtest_disable.h as an unused include from many other files. BUG=webrtc:5387, webrtc:5400 R=kjellander@webrtc.org, phoglund@webrtc.org TBR=henrik.lundin@webrtc.org Review URL: https://codereview.webrtc.org/1547343002 . Cr-Commit-Position: refs/heads/master@{#11150}
This commit is contained in:
@ -17,7 +17,6 @@
|
||||
#include "webrtc/modules/include/module_common_types.h"
|
||||
#include "webrtc/system_wrappers/include/sleep.h"
|
||||
#include "webrtc/test/testsupport/fileutils.h"
|
||||
#include "webrtc/test/testsupport/gtest_disable.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -199,23 +198,50 @@ class TargetDelayTest : public ::testing::Test {
|
||||
uint8_t payload_[kPayloadLenBytes];
|
||||
};
|
||||
|
||||
TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(OutOfRangeInput)) {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#define MAYBE_OutOfRangeInput DISABLED_OutOfRangeInput
|
||||
#else
|
||||
#define MAYBE_OutOfRangeInput OutOfRangeInput
|
||||
#endif
|
||||
TEST_F(TargetDelayTest, MAYBE_OutOfRangeInput) {
|
||||
OutOfRangeInput();
|
||||
}
|
||||
|
||||
TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(NoTargetDelayBufferSizeChanges)) {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#define MAYBE_NoTargetDelayBufferSizeChanges \
|
||||
DISABLED_NoTargetDelayBufferSizeChanges
|
||||
#else
|
||||
#define MAYBE_NoTargetDelayBufferSizeChanges NoTargetDelayBufferSizeChanges
|
||||
#endif
|
||||
TEST_F(TargetDelayTest, MAYBE_NoTargetDelayBufferSizeChanges) {
|
||||
NoTargetDelayBufferSizeChanges();
|
||||
}
|
||||
|
||||
TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(WithTargetDelayBufferNotChanging)) {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#define MAYBE_WithTargetDelayBufferNotChanging \
|
||||
DISABLED_WithTargetDelayBufferNotChanging
|
||||
#else
|
||||
#define MAYBE_WithTargetDelayBufferNotChanging WithTargetDelayBufferNotChanging
|
||||
#endif
|
||||
TEST_F(TargetDelayTest, MAYBE_WithTargetDelayBufferNotChanging) {
|
||||
WithTargetDelayBufferNotChanging();
|
||||
}
|
||||
|
||||
TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(RequiredDelayAtCorrectRange)) {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#define MAYBE_RequiredDelayAtCorrectRange DISABLED_RequiredDelayAtCorrectRange
|
||||
#else
|
||||
#define MAYBE_RequiredDelayAtCorrectRange RequiredDelayAtCorrectRange
|
||||
#endif
|
||||
TEST_F(TargetDelayTest, MAYBE_RequiredDelayAtCorrectRange) {
|
||||
RequiredDelayAtCorrectRange();
|
||||
}
|
||||
|
||||
TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(TargetDelayBufferMinMax)) {
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
#define MAYBE_TargetDelayBufferMinMax DISABLED_TargetDelayBufferMinMax
|
||||
#else
|
||||
#define MAYBE_TargetDelayBufferMinMax TargetDelayBufferMinMax
|
||||
#endif
|
||||
TEST_F(TargetDelayTest, MAYBE_TargetDelayBufferMinMax) {
|
||||
TargetDelayBufferMinMax();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user