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

Unified Diff: components/proximity_auth/ble/fake_wire_message.h

Issue 1116963002: Bluetooth low energy connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698