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

Unified Diff: chromeos/dbus/fake_easy_unlock_client_unittest.cc

Issue 577443004: Revert of 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 2be4024d3a1e038dfc7498ec7599b773b33cb649..7c344d995f7c765238a4e7a7071ab7231dfd7927 100644
--- a/chromeos/dbus/fake_easy_unlock_client_unittest.cc
+++ b/chromeos/dbus/fake_easy_unlock_client_unittest.cc
@@ -203,19 +203,15 @@
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",
- options,
+ "KEY",
+ "ASSOCIATED_DATA",
+ "PUBLIC_METADATA",
+ "VERIFICATION_KEY_ID",
+ "DECRYPTION_KEY_ID",
+ "ENCRYPTION_TYPE",
+ "SIGNATURE_TYPE",
base::Bind(&RecordData, &message));
const std::string expected_message(
@@ -236,16 +232,12 @@
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",
- options,
+ "KEY",
+ "ASSOCIATED_DATA",
+ "ENCRYPTION_TYPE",
+ "SIGNATURE_TYPE",
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