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