diff options
author | tholenst <tholenst@google.com> | 2020-10-07 05:45:42 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-10-07 05:46:18 -0700 |
commit | 975c143d30b3a92b1b80910be8f91b86c9927707 (patch) | |
tree | 18dc45e94842acc28863ff6baa6c5fb2143c68f0 /cc/mac/mac_factory_test.cc | |
parent | ff850e67b1f3571169754412e7ce94e379046d0f (diff) | |
download | tink-975c143d30b3a92b1b80910be8f91b86c9927707.tar.gz |
Change get_output_prefix(key) to GetOutputPrefix(key_id, output_prefix_type).
We change the arguments, and get closer to the Google C++ style guide by renaming.
PiperOrigin-RevId: 335847935
Diffstat (limited to 'cc/mac/mac_factory_test.cc')
-rw-r--r-- | cc/mac/mac_factory_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/mac/mac_factory_test.cc b/cc/mac/mac_factory_test.cc index f73032b34..07ba56efd 100644 --- a/cc/mac/mac_factory_test.cc +++ b/cc/mac/mac_factory_test.cc @@ -103,7 +103,9 @@ TEST_F(MacFactoryTest, testPrimitive) { EXPECT_TRUE(compute_mac_result.ok()) << compute_mac_result.status(); std::string mac_value = compute_mac_result.ValueOrDie(); std::string prefix = - CryptoFormat::get_output_prefix(keyset.key(2)).ValueOrDie(); + CryptoFormat::GetOutputPrefix(keyset.key(2).key_id(), + keyset.key(2).output_prefix_type()) + .ValueOrDie(); EXPECT_PRED_FORMAT2(testing::IsSubstring, prefix, mac_value); util::Status status = mac->VerifyMac(mac_value, data); |