mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Validate the audio_policy_configuration.xml supplied in /vendor against the format schema. Test: Run the VTS test on target Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation Bug: 35700978 Change-Id: I800e692a6ff4f64655007c33af7e34d879ee1132 Signed-off-by: Kevin Rocard <krocard@google.com>
23 lines
852 B
C++
23 lines
852 B
C++
/*
|
|
* Copyright (C) 2017 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "utility/ValidateXml.h"
|
|
|
|
TEST(CheckConfig, audioPolicyConfigurationValidation) {
|
|
ASSERT_VALID_XML("/vendor/etc/audio_policy_configuration.xml",
|
|
"/data/local/tmp/audio_policy_configuration.xsd");
|
|
}
|