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

Unified Diff: components/proximity_auth/ble/fake_wire_message.cc

Issue 1116963002: Bluetooth low energy connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing debug messages Created 5 years, 7 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: components/proximity_auth/ble/fake_wire_message.cc
diff --git a/components/proximity_auth/ble/fake_wire_message.cc b/components/proximity_auth/ble/fake_wire_message.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8795679245a5bf31d682db13859e8fb2a5b7cc4a
--- /dev/null
+++ b/components/proximity_auth/ble/fake_wire_message.cc
@@ -0,0 +1,25 @@
+#include <string>
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+#include "components/proximity_auth/ble/fake_wire_message.h"
+#include "components/proximity_auth/wire_message.h"
+
+namespace proximity_auth {
+
+FakeWireMessage::FakeWireMessage(const std::string& payload)
+ : WireMessage("", payload) {
+}
+
+scoped_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
+ const std::string& serialized_message,
+ bool* is_incomplete_message) {
+ *is_incomplete_message = false;
+ return scoped_ptr<FakeWireMessage>(new FakeWireMessage(serialized_message));
+}
+
+std::string FakeWireMessage::Serialize() const {
+ return std::string(payload());
+}
+}

Powered by Google App Engine
This is Rietveld 408576698