146f34cbfSopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
246f34cbfSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
346f34cbfSopenharmony_ci# you may not use this file except in compliance with the License.
446f34cbfSopenharmony_ci# You may obtain a copy of the License at
546f34cbfSopenharmony_ci#
646f34cbfSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
746f34cbfSopenharmony_ci#
846f34cbfSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
946f34cbfSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1046f34cbfSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146f34cbfSopenharmony_ci# See the License for the specific language governing permissions and
1246f34cbfSopenharmony_ci# limitations under the License.
1346f34cbfSopenharmony_ci
1446f34cbfSopenharmony_ciimport("//build/test.gni")
1546f34cbfSopenharmony_ciimport("../../../config.gni")
1646f34cbfSopenharmony_ci
1746f34cbfSopenharmony_cimodule_output_path = "multimedia_audio_framework/audio_policy"
1846f34cbfSopenharmony_ci
1946f34cbfSopenharmony_cigroup("moduletest") {
2046f34cbfSopenharmony_ci  testonly = true
2146f34cbfSopenharmony_ci
2246f34cbfSopenharmony_ci  deps = [ ":audio_policy_module_test" ]
2346f34cbfSopenharmony_ci}
2446f34cbfSopenharmony_ci
2546f34cbfSopenharmony_ciohos_moduletest("audio_policy_module_test") {
2646f34cbfSopenharmony_ci  module_out_path = module_output_path
2746f34cbfSopenharmony_ci  include_dirs = [
2846f34cbfSopenharmony_ci    "./1.0/include",
2946f34cbfSopenharmony_ci    "../../../interfaces/inner_api/native/audiomanager/include",
3046f34cbfSopenharmony_ci    "../../../interfaces/inner_api/native/audiocommon/include",
3146f34cbfSopenharmony_ci  ]
3246f34cbfSopenharmony_ci
3346f34cbfSopenharmony_ci  sources = [ "1.0/src/audio_policy_test.cpp" ]
3446f34cbfSopenharmony_ci
3546f34cbfSopenharmony_ci  deps = [ "../../../services/audio_service:audio_client" ]
3646f34cbfSopenharmony_ci  external_deps = [
3746f34cbfSopenharmony_ci    "c_utils:utils",
3846f34cbfSopenharmony_ci    "hilog:libhilog",
3946f34cbfSopenharmony_ci  ]
4046f34cbfSopenharmony_ci}
41