blob: d13b53097cf15f036c81f2343141c58d60c6628b [file] [log] [blame]
# Copyright (C) 2023 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("../../../../gn/test.gni")
source_set("storage") {
sources = [
"arrangement_storage.cc",
"arrangement_storage.h",
"dense_null_storage.cc",
"dense_null_storage.h",
"dummy_storage.cc",
"dummy_storage.h",
"id_storage.cc",
"id_storage.h",
"null_storage.cc",
"null_storage.h",
"numeric_storage.cc",
"numeric_storage.h",
"selector_storage.cc",
"selector_storage.h",
"set_id_storage.cc",
"set_id_storage.h",
"storage.cc",
"storage.h",
"string_storage.cc",
"string_storage.h",
"types.h",
"utils.cc",
"utils.h",
]
deps = [
"../..:metatrace",
"../../../../gn:default_deps",
"../../../../include/perfetto/trace_processor:basic_types",
"../../../../protos/perfetto/trace_processor:zero",
"../../../base",
"../../containers",
"../../util:glob",
"../../util:regex",
]
}
perfetto_unittest_source_set("fake_storage") {
testonly = true
sources = [
"fake_storage.cc",
"fake_storage.h",
]
deps = [
":storage",
"../../../../gn:default_deps",
"../../../../gn:gtest_and_gmock",
"../../containers",
]
}
perfetto_unittest_source_set("unittests") {
testonly = true
sources = [
"arrangement_storage_unittest.cc",
"dense_null_storage_unittest.cc",
"id_storage_unittest.cc",
"null_storage_unittest.cc",
"numeric_storage_unittest.cc",
"selector_storage_unittest.cc",
"set_id_storage_unittest.cc",
"string_storage_unittest.cc",
]
deps = [
":fake_storage",
":storage",
"../../../../gn:default_deps",
"../../../../gn:gtest_and_gmock",
"../../../../include/perfetto/trace_processor:basic_types",
"../../containers",
]
}