Loading audio/effect/all-versions/vts/functional/ValidateAudioEffectsConfiguration.cpp +11 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,12 @@ #include <iterator> #include <iterator> #include <media/EffectsConfig.h> #include <media/EffectsConfig.h> // clang-format off #include PATH(android/hardware/audio/effect/FILE_VERSION/IEffectsFactory.h) // clang-format on #include <gtest/gtest.h> #include <hidl/ServiceManagement.h> #include "utility/ValidateXml.h" #include "utility/ValidateXml.h" Loading @@ -29,6 +35,11 @@ TEST(CheckConfig, audioEffectsConfigurationValidation) { RecordProperty("description", RecordProperty("description", "Verify that the effects configuration file is valid according to the schema"); "Verify that the effects configuration file is valid according to the schema"); using namespace android::effectsConfig; using namespace android::effectsConfig; if (android::hardware::getAllHalInstanceNames( ::android::hardware::audio::effect::CPP_VERSION::IEffectsFactory::descriptor) .size() == 0) { GTEST_SKIP() << "No Effects HAL version " STRINGIFY(CPP_VERSION) " on this device"; } std::vector<const char*> locations(std::begin(DEFAULT_LOCATIONS), std::end(DEFAULT_LOCATIONS)); std::vector<const char*> locations(std::begin(DEFAULT_LOCATIONS), std::end(DEFAULT_LOCATIONS)); const char* xsd = "/data/local/tmp/audio_effects_conf_" STRINGIFY(CPP_VERSION) ".xsd"; const char* xsd = "/data/local/tmp/audio_effects_conf_" STRINGIFY(CPP_VERSION) ".xsd"; Loading Loading
audio/effect/all-versions/vts/functional/ValidateAudioEffectsConfiguration.cpp +11 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,12 @@ #include <iterator> #include <iterator> #include <media/EffectsConfig.h> #include <media/EffectsConfig.h> // clang-format off #include PATH(android/hardware/audio/effect/FILE_VERSION/IEffectsFactory.h) // clang-format on #include <gtest/gtest.h> #include <hidl/ServiceManagement.h> #include "utility/ValidateXml.h" #include "utility/ValidateXml.h" Loading @@ -29,6 +35,11 @@ TEST(CheckConfig, audioEffectsConfigurationValidation) { RecordProperty("description", RecordProperty("description", "Verify that the effects configuration file is valid according to the schema"); "Verify that the effects configuration file is valid according to the schema"); using namespace android::effectsConfig; using namespace android::effectsConfig; if (android::hardware::getAllHalInstanceNames( ::android::hardware::audio::effect::CPP_VERSION::IEffectsFactory::descriptor) .size() == 0) { GTEST_SKIP() << "No Effects HAL version " STRINGIFY(CPP_VERSION) " on this device"; } std::vector<const char*> locations(std::begin(DEFAULT_LOCATIONS), std::end(DEFAULT_LOCATIONS)); std::vector<const char*> locations(std::begin(DEFAULT_LOCATIONS), std::end(DEFAULT_LOCATIONS)); const char* xsd = "/data/local/tmp/audio_effects_conf_" STRINGIFY(CPP_VERSION) ".xsd"; const char* xsd = "/data/local/tmp/audio_effects_conf_" STRINGIFY(CPP_VERSION) ".xsd"; Loading