• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/test.gni")
16
17module_output_path = "hiview/usage_event_report"
18
19config("usage_event_report_cache_test_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    ".",
24    "$hiview_base/event_report/event/include",
25    "$hiview_base/event_report/factory/include",
26    "$hiview_base/event_report/include",
27    "$hiview_plugin/usage_event_report/cache/include",
28    "$hiview_plugin/usage_event_report/event/include",
29    "$hiview_plugin/usage_event_report/include",
30    "$hiview_plugin/usage_event_report/service/factory/include",
31  ]
32
33  cflags = [ "-D__UNITTEST__" ]
34}
35
36ohos_unittest("UsageEventReportCacheTest") {
37  module_out_path = module_output_path
38  configs = [ ":usage_event_report_cache_test_config" ]
39
40  sources = [ "usage_event_report_cache_test.cpp" ]
41
42  deps = [
43    "$hiview_base/event_report:hiview_event_report",
44    "$hiview_plugin/usage_event_report:usage_event_report",
45    "//third_party/googletest:gtest_main",
46  ]
47
48  external_deps = [
49    "c_utils:utils",
50    "hilog:libhilog",
51    "hisysevent:libhisysevent",
52    "relational_store:native_rdb",
53  ]
54}
55