diff options
author | tholenst <tholenst@google.com> | 2020-10-09 04:45:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-10-09 04:46:07 -0700 |
commit | 815e5c34b3baf6ae8d40ef24552b637f93149ac5 (patch) | |
tree | 8e49b6fd13bdb4b6755e961b5bf4b85b56a79d62 /cc/mac/mac_config_test.cc | |
parent | 4323440eefb76a51fdaf13c0dda50573d6840541 (diff) | |
download | tink-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.cc | 10 |
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()); |