aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/cpp/BUILD
diff options
context:
space:
mode:
authorGravatar ccalvarin <ccalvarin@google.com>2018-04-13 12:20:43 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-13 12:22:38 -0700
commit10d9155d6b1fad5c05c5872fb917cc77fbc61810 (patch)
tree7d540a0dfcf619165a8e34497d6495781c368f7f /src/test/cpp/BUILD
parentb985f619755864acd1a6bde13372c808ac609d35 (diff)
Break out the SuccessfulIs(Un|Null)aryTest into a helper file.
RELNOTES: None. PiperOrigin-RevId: 192805836
Diffstat (limited to 'src/test/cpp/BUILD')
-rw-r--r--src/test/cpp/BUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/cpp/BUILD b/src/test/cpp/BUILD
index 42f81129d1..782d1814b0 100644
--- a/src/test/cpp/BUILD
+++ b/src/test/cpp/BUILD
@@ -54,11 +54,23 @@ cc_test(
],
)
+cc_library(
+ name = "test_util",
+ testonly = 1,
+ srcs = ["test_util.cc"],
+ hdrs = ["test_util.h"],
+ deps = [
+ "//src/main/cpp:startup_options",
+ "@com_google_googletest//:gtest_main",
+ ],
+)
+
cc_test(
name = "startup_options_test",
size = "small",
srcs = ["startup_options_test.cc"],
deps = [
+ ":test_util",
"//src/main/cpp:blaze_util",
"//src/main/cpp:startup_options",
"//src/main/cpp:workspace_layout",