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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 #include <string>
2
3 #include "base/macros.h"
4 #include "base/memory/scoped_ptr.h"
5
6 #include "components/proximity_auth/ble/fake_wire_message.h"
7 #include "components/proximity_auth/wire_message.h"
8
9 namespace proximity_auth {
10
11 FakeWireMessage::FakeWireMessage(const std::string& payload)
12 : WireMessage("", payload) {
13 }
14
15 scoped_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
16 const std::string& serialized_message,
17 bool* is_incomplete_message) {
18 *is_incomplete_message = false;
19 return scoped_ptr<FakeWireMessage>(new FakeWireMessage(serialized_message));
20 }
21
22 std::string FakeWireMessage::Serialize() const {
23 return std::string(payload());
24 }
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698