diff options
-rw-r--r-- | tools/interface_generator/test/BUILD.bazel | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/interface_generator/test/BUILD.bazel b/tools/interface_generator/test/BUILD.bazel index 6c0602a..2166c4e 100644 --- a/tools/interface_generator/test/BUILD.bazel +++ b/tools/interface_generator/test/BUILD.bazel @@ -7,13 +7,18 @@ generate_interface( visibility = ["//visibility:private"], ) -cc_test( - name = "test_kstdio", - srcs = [":kstdio", "test_kstdio.cpp"], +cc_library( + name = "kstdio_mock", + srcs = ["kstdio_mock.cpp"], deps = [ ":kstdio", "@googletest//:gtest", "@googletest//:gtest_main", ], - visibility = ["//visibility:private"], +) + +cc_test( + name = "test_kstdio", + srcs = ["test_kstdio.cpp"], + deps = [":kstdio_mock"], ) |