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

Side by Side Diff: components/cryptauth/ble/fake_wire_message.h

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

Powered by Google App Engine
This is Rietveld 408576698