Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18f463ee authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Audio V4: Duplicate V2 tests



Because VTS must no be modified for old API version (except bug fixes),
as that could break retrocompatiblity.
As a result, a full copy is made. This commit is only:
$ cp -r core/2.0/vts/ core/4.0/vts
$ cp -r effect/2.0/vts/ effect/4.0/vts

With a V2 replaced by V4 test target name to avoid conflict.

Bug: 38184704
Test: Compile
Change-Id: Iddf9e7a9d42bfe84cf067a08d249a9cc0e6b7241
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent 4f244a3d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
elaurent@google.com
krocard@google.com
mnaganov@google.com
yim@google.com
zhuoyao@google.com
 No newline at end of file
+33 −0
Original line number Original line Diff line number Diff line
//
// 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.
//

cc_test {
    name: "VtsHalAudioV4_0TargetTest",
    defaults: ["VtsHalTargetTestDefaults"],
    srcs: [
        "AudioPrimaryHidlHalTest.cpp",
        "ValidateAudioConfiguration.cpp"
    ],
    static_libs: [
        "android.hardware.audio.common.test.utility",
        "android.hardware.audio@2.0",
        "android.hardware.audio.common@2.0",
        "libxml2",
    ],
    shared_libs: [
        "libicuuc",
    ],
}
+1280 −0

File added.

Preview size limit exceeded, changes collapsed.

+30 −0
Original line number Original line Diff line number Diff line
/*
 * 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 <unistd.h>
#include <string>

#include "utility/ValidateXml.h"

TEST(CheckConfig, audioPolicyConfigurationValidation) {
    RecordProperty("description",
                   "Verify that the audio policy configuration file "
                   "is valid according to the schema");

    std::vector<const char*> locations = {"/odm/etc", "/vendor/etc", "/system/etc"};
    EXPECT_ONE_VALID_XML_MULTIPLE_LOCATIONS("audio_policy_configuration.xml", locations,
                                            "/data/local/tmp/audio_policy_configuration.xsd");
}
+5 −0
Original line number Original line Diff line number Diff line
elaurent@google.com
krocard@google.com
mnaganov@google.com
yim@google.com
zhuoyao@google.com
 No newline at end of file
Loading