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..f0f2325456d390d31eb129456da9657e64c8434b |
--- /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" |
+ |
+#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); |
+ |
+ std::string Serialize() const override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(FakeWireMessage); |
+}; |
+} |
+ |
+#endif // COMPONENTS_PROXIMITY_AUTH_WIRE_MESSAGE_H |