Chromium Code Reviews| Index: components/proximity_auth/ble/fake_wire_message.h |
| diff --git a/components/proximity_auth/ble/fake_wire_message.h b/components/proximity_auth/ble/fake_wire_message.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..938c4caa911c175227b8de579da69cab91037ffb |
| --- /dev/null |
| +++ b/components/proximity_auth/ble/fake_wire_message.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_PROXIMITY_AUTH_FAKE_WIRE_MESSAGE_H |
| +#define COMPONENTS_PROXIMITY_AUTH_FAKE_WIRE_MESSAGE_H |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
|
msarda
2015/05/05 11:56:14
Kill empty line.
sacomoto
2015/05/06 13:47:59
Done.
|
| +#include "components/proximity_auth/wire_message.h" |
| + |
| +namespace proximity_auth { |
| + |
| +class FakeWireMessage : public WireMessage { |
| + public: |
| + FakeWireMessage(const std::string& payload); |
| + |
| + static scoped_ptr<FakeWireMessage> Deserialize( |
| + const std::string& serialized_message, |
| + 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
|
| + |
| + virtual std::string Serialize() const override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(FakeWireMessage); |
| +}; |
| +} |
| + |
| +#endif // COMPONENTS_PROXIMITY_AUTH_WIRE_MESSAGE_H |