Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc

Issue 2621103002: Remove GCMMessageCryptographer::Label (Closed)
Patch Set: Remove GCMMessageCryptographer::Label Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/gcm_driver/crypto/gcm_message_cryptographer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc
diff --git a/components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc b/components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc
index 2dad6245af7a3c2639594151ba447d42ab1f4807..e7d1f06cb448f1a84d7dc46abc4f13bf4a39f5be 100644
--- a/components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc
+++ b/components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc
@@ -138,8 +138,7 @@ class GCMMessageCryptographerTest : public ::testing::Test {
&peer_public_key));
cryptographer_.reset(
- new GCMMessageCryptographer(GCMMessageCryptographer::Label::P256,
- local_public_key, peer_public_key,
+ new GCMMessageCryptographer(local_public_key, peer_public_key,
kAuthSecretCommon));
}
@@ -353,11 +352,9 @@ TEST_F(GCMMessageCryptographerTest, AuthSecretAffectsIKM) {
// Fake IKM to use in the DerivePseudoRandomKey calls.
const char kFakeIKM[] = "HelloWorld";
- GCMMessageCryptographer hello_cryptographer(
- GCMMessageCryptographer::Label::P256, public_key, public_key, "Hello");
+ GCMMessageCryptographer hello_cryptographer(public_key, public_key, "Hello");
- GCMMessageCryptographer world_cryptographer(
- GCMMessageCryptographer::Label::P256, public_key, public_key, "World");
+ GCMMessageCryptographer world_cryptographer(public_key, public_key, "World");
ASSERT_NE(hello_cryptographer.DerivePseudoRandomKey(kFakeIKM), kFakeIKM);
ASSERT_NE(world_cryptographer.DerivePseudoRandomKey(kFakeIKM), kFakeIKM);
@@ -446,8 +443,7 @@ class GCMMessageCryptographerReferenceTest
}
std::unique_ptr<GCMMessageCryptographer> instance(
- new GCMMessageCryptographer(GCMMessageCryptographer::Label::P256,
- receiver_public_key, sender_public_key,
+ new GCMMessageCryptographer(receiver_public_key, sender_public_key,
auth_secret));
if (auth_secret.empty())
« no previous file with comments | « components/gcm_driver/crypto/gcm_message_cryptographer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698