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

Side by Side Diff: components/proximity_auth/ble/fake_wire_message.cc

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Rebase. Created 4 years 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 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/proximity_auth/ble/fake_wire_message.h"
6
7 #include <memory>
8 #include <string>
9
10 #include "base/macros.h"
11 #include "components/proximity_auth/wire_message.h"
12
13 namespace proximity_auth {
14
15 FakeWireMessage::FakeWireMessage(const std::string& payload)
16 : WireMessage(payload) {}
17
18 std::unique_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
19 const std::string& serialized_message,
20 bool* is_incomplete_message) {
21 *is_incomplete_message = false;
22 return std::unique_ptr<FakeWireMessage>(
23 new FakeWireMessage(serialized_message));
24 }
25
26 std::string FakeWireMessage::Serialize() const {
27 return std::string(payload());
28 }
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698