From eb0072c1bfcb369876b999fb15eeef3a4527ffd5 Mon Sep 17 00:00:00 2001 From: tholenst <tholenst@google.com> Date: Mon, 29 Jul 2019 03:06:14 -0700 Subject: [PATCH] Complete the "config_util_test". Apparently I forgot to test parts -- it's really simple here, so it should be done. PiperOrigin-RevId: 260463651 --- cc/config/config_util_test.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cc/config/config_util_test.cc b/cc/config/config_util_test.cc index 2bc947811..ba9edd1ba 100644 --- a/cc/config/config_util_test.cc +++ b/cc/config/config_util_test.cc @@ -25,6 +25,11 @@ namespace tink { TEST(CreateKeyTypeEntry, Simple) { google::crypto::tink::KeyTypeEntry entry = CreateTinkKeyTypeEntry( "catalogue", "primitive_name", "key_proto_name", 12, true); + EXPECT_THAT(entry.primitive_name(), Eq("primitive_name")); + EXPECT_THAT(entry.type_url(), + Eq("type.googleapis.com/google.crypto.tink.key_proto_name")); + EXPECT_THAT(entry.key_manager_version(), Eq(12)); + EXPECT_THAT(entry.new_key_allowed(), Eq(true)); EXPECT_THAT(entry.catalogue_name(), Eq("catalogue")); } -- GitLab