Enables emboss_test_util in open-source Emboss.
diff --git a/public/BUILD b/public/BUILD
index 5837635..6f4a552 100644
--- a/public/BUILD
+++ b/public/BUILD
@@ -190,3 +190,28 @@
"@com_google_googletest//:gtest_main",
],
)
+
+cc_library(
+ name = "emboss_test_util",
+ testonly = 1,
+ hdrs = ["emboss_test_util.h"],
+ visibility = ["//visibility:public"],
+ deps = [
+ ":cpp_utils",
+ "@com_google_googletest//:gtest",
+ "@com_google_absl//absl/memory",
+ ],
+)
+
+cc_test(
+ name = "emboss_test_util_test",
+ srcs = [
+ "emboss_test_util_test.cc",
+ ],
+ copts = ["-Wsign-compare"],
+ deps = [
+ ":emboss_test_util",
+ "@com_google_googletest//:gtest_main",
+ "//testdata:complex_structure_emboss",
+ ],
+)
diff --git a/public/emboss_test_util.h b/public/emboss_test_util.h
index c54d9d9..68485cb 100644
--- a/public/emboss_test_util.h
+++ b/public/emboss_test_util.h
@@ -24,8 +24,7 @@
#include <string>
#include "public/emboss_text_util.h"
-#include "third_party/absl/memory/memory.h"
-#include "third_party/googletest/googletest/include/gtest/internal/gtest-internal.h"
+#include "absl/memory/memory.h"
namespace emboss {
diff --git a/public/emboss_test_util_test.cc b/public/emboss_test_util_test.cc
index a27e684..6ff223e 100644
--- a/public/emboss_test_util_test.cc
+++ b/public/emboss_test_util_test.cc
@@ -26,7 +26,7 @@
class EmbossTestUtilTest : public ::testing::Test {
protected:
EmbossTestUtilTest() { b_.s().Write(1); }
- ::std::array<uint8, 64> buf_a_{};
+ ::std::array</**/ ::std::uint8_t, 64> buf_a_{};
::emboss_test::ComplexWriter a_{&buf_a_};
::std::array<char, 64> buf_b_{};
::emboss_test::ComplexWriter b_{&buf_b_};