OLD | NEW |
(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 } |
OLD | NEW |