mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Audio Effects: Skip CheckConfig test for non-matching HAL versions am: 248708f63c
Change-Id: I8fbd67e5a418f41d6af9be8cec8d0c215ed9385e
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
#include <iterator>
|
||||
|
||||
#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"
|
||||
|
||||
@@ -29,6 +35,11 @@ TEST(CheckConfig, audioEffectsConfigurationValidation) {
|
||||
RecordProperty("description",
|
||||
"Verify that the effects configuration file is valid according to the schema");
|
||||
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));
|
||||
const char* xsd = "/data/local/tmp/audio_effects_conf_" STRINGIFY(CPP_VERSION) ".xsd";
|
||||
|
||||
Reference in New Issue
Block a user