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

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

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
« no previous file with comments | « remoting/host/security_key/security_key_message.h ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/security_key_message.cc
diff --git a/remoting/host/security_key/security_key_message.cc b/remoting/host/security_key/security_key_message.cc
index 571e21df06fda1761835d22e01cb5bb79c737b54..0b8b343bfdd0c7125dbeb6086287f00809f8936e 100644
--- a/remoting/host/security_key/security_key_message.cc
+++ b/remoting/host/security_key/security_key_message.cc
@@ -4,7 +4,13 @@
#include "remoting/host/security_key/security_key_message.h"
+#include <cstdint>
+#include <string>
+#include <utility>
+
+#include "base/callback.h"
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
namespace {
@@ -49,6 +55,16 @@ RemoteSecurityKeyMessageType SecurityKeyMessage::MessageTypeFromValue(
}
}
+scoped_ptr<SecurityKeyMessage> SecurityKeyMessage::CreateMessageForTest(
+ RemoteSecurityKeyMessageType type,
+ const std::string& payload) {
+ scoped_ptr<SecurityKeyMessage> message(new SecurityKeyMessage());
+ message->type_ = type;
+ message->payload_ = payload;
+
+ return message;
+}
+
bool SecurityKeyMessage::ParseMessage(const std::string& message_data) {
if (!IsValidMessageSize(message_data.size())) {
return false;
« no previous file with comments | « remoting/host/security_key/security_key_message.h ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698