OLD | NEW |
---|---|
(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 #ifndef COMPONENTS_PROXIMITY_AUTH_FAKE_WIRE_MESSAGE_H | |
6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_WIRE_MESSAGE_H | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 | |
msarda
2015/05/05 11:56:14
Kill empty line.
sacomoto
2015/05/06 13:47:59
Done.
| |
13 #include "components/proximity_auth/wire_message.h" | |
14 | |
15 namespace proximity_auth { | |
16 | |
17 class FakeWireMessage : public WireMessage { | |
18 public: | |
19 FakeWireMessage(const std::string& payload); | |
20 | |
21 static scoped_ptr<FakeWireMessage> Deserialize( | |
22 const std::string& serialized_message, | |
23 bool* is_incomplete_message); | |
msarda
2015/05/05 11:56:14
is_incomplete_message is an output variable. Mark
sacomoto
2015/05/06 13:47:59
I'm being consistent with proximity_auth::WireMess
| |
24 | |
25 virtual std::string Serialize() const override; | |
26 | |
27 private: | |
28 DISALLOW_COPY_AND_ASSIGN(FakeWireMessage); | |
29 }; | |
30 } | |
31 | |
32 #endif // COMPONENTS_PROXIMITY_AUTH_WIRE_MESSAGE_H | |
OLD | NEW |