aboutsummaryrefslogtreecommitdiff
path: root/cc/mac/mac_config_test.cc
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2020-10-09 04:45:35 -0700
committerCopybara-Service <copybara-worker@google.com>2020-10-09 04:46:07 -0700
commit815e5c34b3baf6ae8d40ef24552b637f93149ac5 (patch)
tree8e49b6fd13bdb4b6755e961b5bf4b85b56a79d62 /cc/mac/mac_config_test.cc
parent4323440eefb76a51fdaf13c0dda50573d6840541 (diff)
downloadtink-815e5c34b3baf6ae8d40ef24552b637f93149ac5.tar.gz
Migrate PrimitiveSet::AddPrimitive to take a KeyInfo instead of a Key.
PiperOrigin-RevId: 336271198
Diffstat (limited to 'cc/mac/mac_config_test.cc')
-rw-r--r--cc/mac/mac_config_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/mac/mac_config_test.cc b/cc/mac/mac_config_test.cc
index f4048ce7d..2df12e7cb 100644
--- a/cc/mac/mac_config_test.cc
+++ b/cc/mac/mac_config_test.cc
@@ -60,16 +60,16 @@ TEST_F(MacConfigTest, Basic) {
TEST_F(MacConfigTest, WrappersRegistered) {
ASSERT_TRUE(MacConfig::Register().ok());
- google::crypto::tink::Keyset::Key key;
- key.set_status(google::crypto::tink::KeyStatusType::ENABLED);
- key.set_key_id(1234);
- key.set_output_prefix_type(google::crypto::tink::OutputPrefixType::RAW);
+ google::crypto::tink::KeysetInfo::KeyInfo key_info;
+ key_info.set_status(google::crypto::tink::KeyStatusType::ENABLED);
+ key_info.set_key_id(1234);
+ key_info.set_output_prefix_type(google::crypto::tink::OutputPrefixType::RAW);
auto primitive_set = absl::make_unique<PrimitiveSet<Mac>>();
ASSERT_TRUE(
primitive_set
->set_primary(
primitive_set
- ->AddPrimitive(absl::make_unique<DummyMac>("dummy"), key)
+ ->AddPrimitive(absl::make_unique<DummyMac>("dummy"), key_info)
.ValueOrDie())
.ok());