| OLD | NEW |
| 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_PROXIMITY_AUTH_FAKE_CONNECTION_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H | 6 #define COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "components/proximity_auth/connection.h" | 9 #include "components/proximity_auth/connection.h" |
| 9 | 10 |
| 10 namespace proximity_auth { | 11 namespace proximity_auth { |
| 11 | 12 |
| 12 // A fake implementation of Connection to use in tests. | 13 // A fake implementation of Connection to use in tests. |
| 13 class FakeConnection : public Connection { | 14 class FakeConnection : public Connection { |
| 14 public: | 15 public: |
| 15 FakeConnection(const RemoteDevice& remote_device); | 16 FakeConnection(const RemoteDevice& remote_device); |
| 16 ~FakeConnection() override; | 17 ~FakeConnection() override; |
| 17 | 18 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 // The payload that should be returned when DeserializeWireMessage() is | 45 // The payload that should be returned when DeserializeWireMessage() is |
| 45 // called. | 46 // called. |
| 46 std::string pending_payload_; | 47 std::string pending_payload_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(FakeConnection); | 49 DISALLOW_COPY_AND_ASSIGN(FakeConnection); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace proximity_auth | 52 } // namespace proximity_auth |
| 52 | 53 |
| 53 #endif // COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H | 54 #endif // COMPONENTS_PROXIMITY_AUTH_FAKE_CONNECTION_H |
| OLD | NEW |