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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc

Issue 2096103003: Move weave packet to common location b/t generator and receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added files back Created 4 years, 6 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/bluetooth_low_energy_weave_packet_generator.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc
index 576296ca3b6f5fc647ae84d882251d707c0e578a..942f312658d9815080e138825e7c21257b589347 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc
@@ -16,9 +16,14 @@
#include "base/logging.h"
+namespace proximity_auth {
Kyle Horimoto 2016/06/27 20:51:12 Why is this moved? Same in the other unit test.
jingxuy 2016/06/27 22:21:33 I saw that this is how the connection class does i
Kyle Horimoto 2016/06/27 22:25:40 Ah, good idea. Thanks for the explanation.
jingxuy 2016/06/27 22:49:08 np
+
namespace {
-typedef proximity_auth::BluetoothLowEnergyWeavePacketGenerator::Packet Packet;
+typedef BluetoothLowEnergyWeavePacket::ControlCommand ControlCommand;
+typedef BluetoothLowEnergyWeavePacket::Packet Packet;
+typedef BluetoothLowEnergyWeavePacket::PacketType PacketType;
+typedef BluetoothLowEnergyWeavePacket::ReasonForClose ReasonForClose;
const uint16_t kMinSupportedWeaveVersion = 1;
const uint16_t kMaxSupportedWeaveVersion = 1;
@@ -33,8 +38,6 @@ const uint8_t kMaxPacketCounter = 8;
} // namespace
-namespace proximity_auth {
-
// static.
BluetoothLowEnergyWeavePacketGenerator::Factory*
BluetoothLowEnergyWeavePacketGenerator::Factory::factory_instance_ =

Powered by Google App Engine
This is Rietveld 408576698