| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chromeos/services/secure_channel/fake_wire_message.h" |
| |
| #include <memory> |
| #include <string> |
| |
| #include "base/macros.h" |
| #include "chromeos/services/secure_channel/wire_message.h" |
| |
| namespace chromeos { |
| |
| namespace secure_channel { |
| |
| FakeWireMessage::FakeWireMessage(const std::string& payload, |
| const std::string& feature) |
| : WireMessage(payload, feature) {} |
| |
| std::string FakeWireMessage::Serialize() const { |
| return feature() + "," + payload(); |
| } |
| |
| } // namespace secure_channel |
| |
| } // namespace chromeos |