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") 15import("//test/xts/tools/build/suite.gni") 16import("../../../../../developtools/profiler/device/base/config.gni") 17 18############################################################################### 19config("module_private_config") { 20 visibility = [ ":*" ] 21} 22 23ohos_moduletest_suite("hipluginmoduleapitest") { 24 deps = [ 25 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin:memdataplugin", 26 "${OHOS_PROFILER_DIR}/protos/types/plugins/memory_data:memory_data_cpp", 27 "//third_party/googletest:gtest", 28 ] 29 include_dirs = [ 30 "${OHOS_PROFILER_DIR}/interfaces/kits/", 31 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/include", 32 "${OHOS_PROFILER_DIR}/device/plugins/api/include", 33 "${OHOS_PROFILER_DIR}/device/plugins/api/src", 34 "${OHOS_PROFILER_DIR}/device/base/include/", 35 "//third_party/googletest/googletest/include/gtest", 36 ] 37 sources = [ 38 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/test/unittest/buffer_splitter_unittest.cpp", 39 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/test/unittest/memory_data_plugin_unittest.cpp", 40 "hipluginmoduleapitest.cpp", 41 ] 42 cflags = [ 43 "-pthread", 44 "-Wno-inconsistent-missing-override", 45 "-Dprivate=public", #allow test code access private members 46 ] 47 external_deps = [ "hilog:libhilog" ] 48 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 49 defines = [ "HAVE_HILOG" ] 50} 51