blob: fd88ec76b1f08114fb2352c711188eead5348b05 [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
import("//build/test.gni")
source_set("mock-allocator") {
testonly = true
sources = [
"fake-buffer-collection.cc",
"fake-buffer-collection.h",
"mock-allocator.cc",
"mock-allocator.h",
]
public_deps = [
"//sdk/fidl/fuchsia.images2:fuchsia.images2_cpp",
"//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_cpp_testing",
"//src/graphics/display/lib/api-types/cpp",
"//src/lib/testing/predicates",
"//third_party/googletest:gtest",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/image-format",
"//zircon/system/ulib/zx",
]
}
source_set("fake-framebuffer") {
testonly = true
sources = [
"fake-framebuffer.cc",
"fake-framebuffer.h",
]
public_deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp",
"//sdk/lib/zbi-format",
"//zircon/system/public",
]
}
test("fake-framebuffer-tests-bin") {
output_name = "fake-framebuffer-tests"
sources = [ "fake-framebuffer-test.cc" ]
deps = [
":fake-framebuffer",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/zbi-format",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/predicates",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("fake-framebuffer-tests") {
deps = [ ":fake-framebuffer-tests-bin" ]
}
group("tests") {
testonly = true
deps = [ ":fake-framebuffer-tests" ]
}