e3c9a8c27b
As all sound trigger HAL implementations use proprietary sound models this just tests proper enumeration of HAL properties and proper error response from HAL when methods are called with obviously wrong arguments or out of sequence. Test: build and run test Bug: 32022431 Change-Id: I6eca0dc100843141752665f7a0d4749fc7eda6fc
37 lines
1 KiB
Text
37 lines
1 KiB
Text
//
|
|
// Copyright (C) 2016 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: "soundtrigger_hidl_hal_test",
|
|
gtest: true,
|
|
srcs: ["soundtrigger_hidl_hal_test.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libhwbinder",
|
|
"libnativehelper",
|
|
"libutils",
|
|
"android.hardware.soundtrigger@2.0",
|
|
],
|
|
static_libs: ["libgtest"],
|
|
cflags: [
|
|
"-O0",
|
|
"-g",
|
|
],
|
|
}
|