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
16module_output_path = "multimedia_image/plugins"
17
18###############################################################################
19config("module_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "//commonlibrary/c_utils/base/include",
24    "//foundation/multimedia/utils/include",
25    "//foundation/multimedia/image_framework/interfaces/innerkits/include",
26    "//foundation/multimedia/image_framework/plugins/manager/include",
27    "//foundation/multimedia/image_framework/plugins/manager/test/unittest/common/plugin_example/interface/vision",
28  ]
29}
30
31##############################unittest##########################################
32ohos_unittest("PluginManagerTest") {
33  module_out_path = module_output_path
34
35  sources = [ "//foundation/multimedia/image_framework/plugins/manager/test/unittest/common/plugin_manager_test.cpp" ]
36
37  configs = [ ":module_private_config" ]
38
39  deps = [
40    "//foundation/multimedia/image_framework/plugins/manager:pluginmanager",
41    "//foundation/multimedia/image_framework/plugins/manager/test/unittest/common/plugin_example/plugin_example1:pluginexample1",
42    "//foundation/multimedia/image_framework/plugins/manager/test/unittest/common/plugin_example/plugin_example2:pluginexample2",
43    "//foundation/multimedia/image_framework/plugins/manager/test/unittest/common/plugin_example/plugin_example3:pluginexample3",
44    "//third_party/googletest:gtest_main",
45  ]
46
47  resource_config_file = "//foundation/multimedia/image_framework/test/resource/plugins/ohos_test.xml"
48}
49
50###############################################################################
51group("unittest") {
52  testonly = true
53
54  deps = [ ":PluginManagerTest" ]
55}
56###############################################################################
57