Merge "Effect AIDL: correct some code format" into main
This commit is contained in:
commit
697e3f89a7
2 changed files with 11 additions and 11 deletions
|
@ -78,9 +78,9 @@ inline ::testing::AssertionResult assertResult(const char* exp_expr, const char*
|
|||
EXPECT_PRED_FORMAT2(::android::hardware::audio::common::testing::detail::assertResult, \
|
||||
expected, ret)
|
||||
|
||||
#define SKIP_TEST_IF_DATA_UNSUPPORTED(flags) \
|
||||
({ \
|
||||
if ((flags).hwAcceleratorMode == Flags::HardwareAccelerator::TUNNEL || (flags).bypass) { \
|
||||
GTEST_SKIP() << "Skip data path for offload"; \
|
||||
} \
|
||||
#define SKIP_TEST_IF_DATA_UNSUPPORTED(flags) \
|
||||
({ \
|
||||
if ((flags).hwAcceleratorMode == Flags::HardwareAccelerator::TUNNEL || (flags).bypass) { \
|
||||
GTEST_SKIP() << "Skip data path for offload"; \
|
||||
} \
|
||||
})
|
|
@ -42,11 +42,11 @@ using ndk::ScopedAStatus;
|
|||
|
||||
using aidl::android::hardware::audio::effect::CommandId;
|
||||
using aidl::android::hardware::audio::effect::Descriptor;
|
||||
using aidl::android::hardware::audio::effect::Flags;
|
||||
using aidl::android::hardware::audio::effect::IEffect;
|
||||
using aidl::android::hardware::audio::effect::IFactory;
|
||||
using aidl::android::hardware::audio::effect::Parameter;
|
||||
using aidl::android::hardware::audio::effect::State;
|
||||
using aidl::android::hardware::audio::effect::Flags;
|
||||
using aidl::android::media::audio::common::AudioDeviceDescription;
|
||||
using aidl::android::media::audio::common::AudioDeviceType;
|
||||
using aidl::android::media::audio::common::AudioMode;
|
||||
|
@ -87,11 +87,11 @@ class AudioEffectTest : public testing::TestWithParam<EffectTestParam>, public E
|
|||
};
|
||||
|
||||
class AudioEffectDataPathTest : public AudioEffectTest {
|
||||
public:
|
||||
void SetUp() override {
|
||||
AudioEffectTest::SetUp();
|
||||
SKIP_TEST_IF_DATA_UNSUPPORTED(mDescriptor.common.flags);
|
||||
}
|
||||
public:
|
||||
void SetUp() override {
|
||||
AudioEffectTest::SetUp();
|
||||
SKIP_TEST_IF_DATA_UNSUPPORTED(mDescriptor.common.flags);
|
||||
}
|
||||
};
|
||||
|
||||
TEST_P(AudioEffectTest, SetupAndTearDown) {
|
||||
|
|
Loading…
Reference in a new issue