• 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")
15import("//foundation/appexecfwk/standard/appexecfwk.gni")
16
17ohos_unittest("GroupImplTest") {
18  module_out_path = "appexecfwk_standard/dispatcher_test"
19
20  sources = [
21    "${dispatcher_path}/src/dispatcher/base_task_dispatcher.cpp",
22    "${dispatcher_path}/src/dispatcher/global_task_dispatcher.cpp",
23    "${dispatcher_path}/src/dispatcher/group_impl.cpp",
24    "${dispatcher_path}/src/dispatcher/parallel_task_dispatcher.cpp",
25    "${dispatcher_path}/src/dispatcher/parallel_task_dispatcher_base.cpp",
26    "${dispatcher_path}/src/dispatcher/serial_task_dispatcher.cpp",
27    "${dispatcher_path}/src/dispatcher/spec_task_dispatcher.cpp",
28    "${dispatcher_path}/src/dispatcher/task_dispatcher_context.cpp",
29    "${dispatcher_path}/src/task/barrier_handler.cpp",
30    "${dispatcher_path}/src/task/sync_task.cpp",
31    "${dispatcher_path}/src/task/task.cpp",
32    "${dispatcher_path}/src/threading/default_thread_factory.cpp",
33    "${dispatcher_path}/src/threading/default_worker_pool_config.cpp",
34    "${dispatcher_path}/src/threading/task_executor.cpp",
35    "${dispatcher_path}/src/threading/work_thread.cpp",
36    "${dispatcher_path}/src/threading/worker_pool.cpp",
37  ]
38
39  sources += [ "groupImpl_test.cpp" ]
40
41  configs = [ "${dispatcher_path}/test:dispatcher_test_config" ]
42
43  deps = [
44    "${appexecfwk_path}/common:libappexecfwk_common",
45    "${dispatcher_path}/test:dispatcher_test_source",
46  ]
47
48  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
49}
50
51group("unittest") {
52  testonly = true
53
54  deps = [ ":GroupImplTest" ]
55}
56