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

Unified Diff: remoting/host/security_key/security_key_message.h

Issue 1855613002: Adding the RemoteSecurityKeyMessageHandler class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback Created 4 years, 8 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
Index: remoting/host/security_key/security_key_message.h
diff --git a/remoting/host/security_key/security_key_message.h b/remoting/host/security_key/security_key_message.h
index bcd0a28f3d30b26b165a45ecfadbc521520f4428..1074a4a2148c41b07d7dec609699beb968c9c112 100644
--- a/remoting/host/security_key/security_key_message.h
+++ b/remoting/host/security_key/security_key_message.h
@@ -116,6 +116,12 @@ class SecurityKeyMessage final {
// value passed in if it is valid, otherwise INVALID is returned.
static RemoteSecurityKeyMessageType MessageTypeFromValue(int value);
+ // Creates a message from the passed in values, no validation is done as this
+ // method is only expected to be called from test code.
+ static scoped_ptr<SecurityKeyMessage> CreateMessageForTest(
+ RemoteSecurityKeyMessageType type,
+ const std::string& payload);
+
// Parses |message_data| and initializes the internal members. Returns true
// if |message_data| was parsed and the instance was initialized successfully.
bool ParseMessage(const std::string& message_data);

Powered by Google App Engine
This is Rietveld 408576698