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

Unified Diff: chromeos/dbus/fake_easy_unlock_client_unittest.cc

Issue 569813002: Minor cleanup in EasyUnlockClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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 | « chromeos/dbus/fake_easy_unlock_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_easy_unlock_client_unittest.cc
diff --git a/chromeos/dbus/fake_easy_unlock_client_unittest.cc b/chromeos/dbus/fake_easy_unlock_client_unittest.cc
index 7c344d995f7c765238a4e7a7071ab7231dfd7927..2be4024d3a1e038dfc7498ec7599b773b33cb649 100644
--- a/chromeos/dbus/fake_easy_unlock_client_unittest.cc
+++ b/chromeos/dbus/fake_easy_unlock_client_unittest.cc
@@ -203,15 +203,19 @@ TEST(FakeEasyUnlockClientTest, CreateSecureMessage) {
chromeos::FakeEasyUnlockClient client;
std::string message;
+
+ chromeos::EasyUnlockClient::CreateSecureMessageOptions options;
+ options.key = "KEY";
+ options.associated_data = "ASSOCIATED_DATA";
+ options.public_metadata = "PUBLIC_METADATA";
+ options.verification_key_id = "VERIFICATION_KEY_ID";
+ options.decryption_key_id = "DECRYPTION_KEY_ID";
+ options.encryption_type = "ENCRYPTION_TYPE";
+ options.signature_type = "SIGNATURE_TYPE";
+
client.CreateSecureMessage(
"PAYLOAD",
- "KEY",
- "ASSOCIATED_DATA",
- "PUBLIC_METADATA",
- "VERIFICATION_KEY_ID",
- "DECRYPTION_KEY_ID",
- "ENCRYPTION_TYPE",
- "SIGNATURE_TYPE",
+ options,
base::Bind(&RecordData, &message));
const std::string expected_message(
@@ -232,12 +236,16 @@ TEST(FakeEasyUnlockClientTest, UnwrapSecureMessage) {
chromeos::FakeEasyUnlockClient client;
std::string message;
+
+ chromeos::EasyUnlockClient::UnwrapSecureMessageOptions options;
+ options.key = "KEY";
+ options.associated_data = "ASSOCIATED_DATA";
+ options.encryption_type = "ENCRYPTION_TYPE";
+ options.signature_type = "SIGNATURE_TYPE";
+
client.UnwrapSecureMessage(
"MESSAGE",
- "KEY",
- "ASSOCIATED_DATA",
- "ENCRYPTION_TYPE",
- "SIGNATURE_TYPE",
+ options,
base::Bind(&RecordData, &message));
const std::string expected_message(
« no previous file with comments | « chromeos/dbus/fake_easy_unlock_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698