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

Side by Side Diff: components/cryptauth/fake_connection.h

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
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_CONNECTION_H 5 #ifndef COMPONENTS_CRYPTAUTH_FAKE_CONNECTION_H
6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H 6 #define COMPONENTS_CRYPTAUTH_FAKE_CONNECTION_H
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/proximity_auth/connection.h" 9 #include "components/cryptauth/connection.h"
10 10
11 namespace proximity_auth { 11 namespace cryptauth {
12 12
13 // A fake implementation of Connection to use in tests. 13 // A fake implementation of Connection to use in tests.
14 class FakeConnection : public Connection { 14 class FakeConnection : public Connection {
15 public: 15 public:
16 FakeConnection(const cryptauth::RemoteDevice& remote_device); 16 FakeConnection(const cryptauth::RemoteDevice& remote_device);
17 ~FakeConnection() override; 17 ~FakeConnection() override;
18 18
19 // Connection: 19 // Connection:
20 void Connect() override; 20 void Connect() override;
21 void Disconnect() override; 21 void Disconnect() override;
(...skipping 20 matching lines...) Expand all
42 // SendMessageImpl() and FinishSendingMessageWithSuccess(). 42 // SendMessageImpl() and FinishSendingMessageWithSuccess().
43 std::unique_ptr<WireMessage> current_message_; 43 std::unique_ptr<WireMessage> current_message_;
44 44
45 // The payload that should be returned when DeserializeWireMessage() is 45 // The payload that should be returned when DeserializeWireMessage() is
46 // called. 46 // called.
47 std::string pending_payload_; 47 std::string pending_payload_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(FakeConnection); 49 DISALLOW_COPY_AND_ASSIGN(FakeConnection);
50 }; 50 };
51 51
52 } // namespace proximity_auth 52 } // namespace cryptauth
53 53
54 #endif // COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H 54 #endif // COMPONENTS_CRYPTAUTH_FAKE_CONNECTION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698