blob: 2166c4e75231adc16937801ac5a6d4886d2a4c9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
load("//:defs.bzl", "generate_interface")
generate_interface(
name = "kstdio",
interface = "kstdio",
license = "//:LICENSE.md",
visibility = ["//visibility:private"],
)
cc_library(
name = "kstdio_mock",
srcs = ["kstdio_mock.cpp"],
deps = [
":kstdio",
"@googletest//:gtest",
"@googletest//:gtest_main",
],
)
cc_test(
name = "test_kstdio",
srcs = ["test_kstdio.cpp"],
deps = [":kstdio_mock"],
)
|