• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/test.gni")
15
16MEDIA_LIB_BASE_DIR = "//foundation/multimedia/medialibrary_standard"
17MEDIA_LIB_INNERKITS_DIR = "$MEDIA_LIB_BASE_DIR/frameworks/innerkitsimpl"
18
19module_output_path = "medialibrary_standard/medialibrary"
20
21group("unittest") {
22  testonly = true
23
24  deps = [ ":medialibrary_test" ]
25}
26
27ohos_unittest("medialibrary_test") {
28  module_out_path = module_output_path
29  include_dirs = [
30    "./include",
31    "$MEDIA_LIB_BASE_DIR/interfaces/innerkits/native/include",
32    "$MEDIA_LIB_INNERKITS_DIR/media_library/include/",
33    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include/",
34    "//utils/native/base/include",
35  ]
36
37  sources = [ "src/medialibrary_unit_test.cpp" ]
38
39  deps = [
40    "$MEDIA_LIB_BASE_DIR/services/media_library_service:medialibrary_proxy",
41    "$MEDIA_LIB_INNERKITS_DIR/media_library:media_library",
42    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
43    "//utils/native/base:utils",
44  ]
45}
46