• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("../../../../gn/test.gni")
16
17source_set("column") {
18  sources = [
19    "arrangement_overlay.cc",
20    "arrangement_overlay.h",
21    "data_layer.cc",
22    "data_layer.h",
23    "dense_null_overlay.cc",
24    "dense_null_overlay.h",
25    "dummy_storage.cc",
26    "dummy_storage.h",
27    "id_storage.cc",
28    "id_storage.h",
29    "null_overlay.cc",
30    "null_overlay.h",
31    "numeric_storage.cc",
32    "numeric_storage.h",
33    "range_overlay.cc",
34    "range_overlay.h",
35    "selector_overlay.cc",
36    "selector_overlay.h",
37    "set_id_storage.cc",
38    "set_id_storage.h",
39    "string_storage.cc",
40    "string_storage.h",
41    "types.h",
42    "utils.cc",
43    "utils.h",
44  ]
45  deps = [
46    "..:compare",
47    "../..:metatrace",
48    "../../../../gn:default_deps",
49    "../../../../include/perfetto/trace_processor",
50    "../../../../include/perfetto/trace_processor:basic_types",
51    "../../../../protos/perfetto/trace_processor:zero",
52    "../../../base",
53    "../../containers",
54    "../../util:glob",
55    "../../util:regex",
56  ]
57}
58
59perfetto_unittest_source_set("fake_storage") {
60  testonly = true
61  sources = [
62    "fake_storage.cc",
63    "fake_storage.h",
64  ]
65  deps = [
66    ":column",
67    "../../../../gn:default_deps",
68    "../../../../gn:gtest_and_gmock",
69    "../../../../include/perfetto/trace_processor:basic_types",
70    "../../containers",
71  ]
72}
73
74perfetto_unittest_source_set("unittests") {
75  testonly = true
76  sources = [
77    "arrangement_overlay_unittest.cc",
78    "dense_null_overlay_unittest.cc",
79    "fake_storage_unittest.cc",
80    "id_storage_unittest.cc",
81    "null_overlay_unittest.cc",
82    "numeric_storage_unittest.cc",
83    "range_overlay_unittest.cc",
84    "selector_overlay_unittest.cc",
85    "set_id_storage_unittest.cc",
86    "string_storage_unittest.cc",
87  ]
88  deps = [
89    ":column",
90    ":fake_storage",
91    "../:compare",
92    "../../../../gn:default_deps",
93    "../../../../gn:gtest_and_gmock",
94    "../../../../include/perfetto/trace_processor:basic_types",
95    "../../../base",
96    "../../containers",
97  ]
98}
99