blob: 406d50419860d2a6c4478009f65b33702fbda8dd [file] [log] [blame]
# Copyright 2019 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/cipd.gni")
import("//build/test.gni")
source_set("constants") {
testonly = true
sources = [ "constants.h" ]
public_deps = [
"//sdk/fidl/fuchsia.camera2",
"//sdk/fidl/fuchsia.camera2.hal",
]
}
executable("test") {
output_name = "controller-test"
testonly = true
sources = [
"allocator_test.cc",
"device_test.cc",
"fake_gdc.h",
"fake_ge2d.h",
"fake_isp.h",
"fake_sysmem.h",
"protocol_test.cc",
]
deps = [
":constants",
"//garnet/public/lib/gtest",
"//sdk/lib/sys/cpp",
"//src/camera/drivers/controller:source",
"//src/camera/drivers/controller/sherlock:config",
"//src/camera/drivers/test_utils",
"//src/devices/testing/fake_ddk",
"//src/lib/fxl/test:gtest_main",
]
if (internal_access) {
defines = [ "INTERNAL_ACCESS" ]
}
}