1190978c3Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2190978c3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3190978c3Sopenharmony_ci# you may not use this file except in compliance with the License.
4190978c3Sopenharmony_ci# You may obtain a copy of the License at
5190978c3Sopenharmony_ci#
6190978c3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7190978c3Sopenharmony_ci#
8190978c3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9190978c3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10190978c3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11190978c3Sopenharmony_ci# See the License for the specific language governing permissions and
12190978c3Sopenharmony_ci# limitations under the License.
13190978c3Sopenharmony_ci
14190978c3Sopenharmony_ciimport("//base/update/updateservice/foundations/ability/log/log.gni")
15190978c3Sopenharmony_ciimport("//base/update/updateservice/updateengine.gni")
16190978c3Sopenharmony_ciimport("//build/test.gni")
17190978c3Sopenharmony_ci
18190978c3Sopenharmony_cimodule_output_path = "$updateengine_part_name/$updateengine_unittest_name"
19190978c3Sopenharmony_ci
20190978c3Sopenharmony_ciconfig("module_private_config") {
21190978c3Sopenharmony_ci  visibility = [ ":*" ]
22190978c3Sopenharmony_ci  include_dirs = []
23190978c3Sopenharmony_ci}
24190978c3Sopenharmony_ci
25190978c3Sopenharmony_ciohos_unittest("UpdateLogTest") {
26190978c3Sopenharmony_ci  module_out_path = module_output_path
27190978c3Sopenharmony_ci  configs = [ ":module_private_config" ]
28190978c3Sopenharmony_ci  include_dirs = update_log_include
29190978c3Sopenharmony_ci  sources = update_log_src
30190978c3Sopenharmony_ci  external_deps = update_log_external_deps
31190978c3Sopenharmony_ci
32190978c3Sopenharmony_ci  sources += [ "$updateengine_root_path/foundations/ability/log/src/test/unittest/src/update_log_test.cpp" ]
33190978c3Sopenharmony_ci  deps = [ "//third_party/googletest:gtest_main" ]
34190978c3Sopenharmony_ci  part_name = updateengine_part_name
35190978c3Sopenharmony_ci}
36