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

Issue 2031953003: Weave Packet Generator (Closed)

Created:
4 years, 6 months ago by jingxuy
Modified:
4 years, 6 months ago
CC:
chromium-reviews, msarda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Weave Packet Generator This CL adds a packet generator that respects the uWeave.BLE protocol. The packet generator accepts raw bytes as messages to be sent and wraps the message with the uWeave protocol. The uWeave packets include control packets of request/response/close of a connection and data packets that are the original message chopped up to fixed size packets with uWeave protocol headers. Design Doc of ProximityAuth uWeave Migration: https://docs.google.com/a/google.com/document/d/1HJ1fipxsNQwIxmKs-5_6TjroCAcs6qRhAYvOnIr6mQw/edit?usp=sharing BUG=617238 Committed: https://crrev.com/6742a47fff173bfa1bf0a4ec3a4655436c9c03e4 Cr-Commit-Position: refs/heads/master@{#401993}

Patch Set 1 #

Patch Set 2 : ProximityAuth uWeave Migration #

Patch Set 3 : uWeave Packet Generator #

Total comments: 97

Patch Set 4 : changed magic numbers to enums #

Total comments: 6

Patch Set 5 : addressed .h comments and passed the tests with network endian #

Patch Set 6 : changed argument type to some Set* function fromt ints to enum #

Patch Set 7 : changed function name from cmd to command #

Total comments: 32

Patch Set 8 : changed name of ControlPacketCommand to ControlCommand #

Total comments: 18

Patch Set 9 : add back the test that's accidentally deleted #

Patch Set 10 : addressed some stylistic comemnts in the .cc file #

Patch Set 11 : addressed style comments #

Total comments: 19

Patch Set 12 : Don't review yet! commit before moving machine #

Patch Set 13 : make tests more readible/comprehensive #

Patch Set 14 : enforce the minimum packet size to be 2 so can contain header and 1 byte of data #

Total comments: 48

Patch Set 15 : outlaw empty message #

Patch Set 16 : addressed comments in cc and test file #

Patch Set 17 : wrap around test #

Patch Set 18 : improved style of test code #

Total comments: 4

Patch Set 19 : flipped how shorts are ordered #

Total comments: 2

Patch Set 20 : changed implementation from shifting to htons for clearity #

Patch Set 21 : increased the number of packets to test wrap arounds even better! #

Total comments: 14

Patch Set 22 : fixed double i counter issue #

Total comments: 2

Patch Set 23 : use reinterpet_cast #

Total comments: 4

Patch Set 24 : removed files that doesn't exist yet in the master in BUILD.gn #

Patch Set 25 : allowed re-generation of request/response without incrementing the counter. accomodate actual conne… #

Patch Set 26 : minor style update #

Total comments: 2

Patch Set 27 : final style change #

Patch Set 28 : ifdef guard around htons include and changed some uint16 to uint8 #

Patch Set 29 : updated gyp files #

Patch Set 30 : include the header that actually enables platform dependent include of headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -0 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M components/proximity_auth.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -0 lines 0 comments Download
M components/proximity_auth/ble/BUILD.gn View 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 2 chunks +3 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +91 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +215 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +270 lines, -0 lines 0 comments Download

Messages

Total messages: 75 (20 generated)
jingxuy
4 years, 6 months ago (2016-06-02 23:30:28 UTC) #2
msarda
Drive-by: Please create a bug and attach all the CLs for this refactoring to that ...
4 years, 6 months ago (2016-06-03 09:25:11 UTC) #4
Kyle Horimoto
+1 to msarda's comments - please improve your title. Someone who reads this years from ...
4 years, 6 months ago (2016-06-03 16:57:49 UTC) #5
sacomoto
First pass on the bluetooth_low_energy_weave_packet_generator.cc. https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode49 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:49: SetControlCmd(packet, 0, 0); Please ...
4 years, 6 months ago (2016-06-06 15:25:21 UTC) #9
sacomoto
First pass on the bluetooth_low_energy_weave_packet_generator.cc.
4 years, 6 months ago (2016-06-06 15:25:23 UTC) #10
Kyle Horimoto
First pass through. Just went through the implementation - didn't review the test yet. https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc ...
4 years, 6 months ago (2016-06-06 19:30:55 UTC) #11
jingxuy
addressed most comments. Currently failing tests because of the big/little endian situation, but otherwise good ...
4 years, 6 months ago (2016-06-07 01:19:08 UTC) #12
sacomoto
Hey Jing, I think you forgot to upload the latest patch.
4 years, 6 months ago (2016-06-07 09:51:29 UTC) #13
Kyle Horimoto
On 2016/06/07 09:51:29, sacomoto wrote: > Hey Jing, I think you forgot to upload the ...
4 years, 6 months ago (2016-06-07 16:55:38 UTC) #14
jingxuy
On 2016/06/07 16:55:38, Kyle Horimoto wrote: > On 2016/06/07 09:51:29, sacomoto wrote: > > Hey ...
4 years, 6 months ago (2016-06-07 20:34:17 UTC) #15
jingxuy
On 2016/06/07 20:34:17, jingxuy wrote: > On 2016/06/07 16:55:38, Kyle Horimoto wrote: > > On ...
4 years, 6 months ago (2016-06-07 20:42:38 UTC) #16
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode69 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:69: SetIntField(packet, 3, packet_size_); On 2016/06/06 19:30:54, Kyle Horimoto wrote: ...
4 years, 6 months ago (2016-06-08 00:06:30 UTC) #17
jingxuy
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode69 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:69: SetIntField(packet, 3, packet_size_); On 2016/06/06 19:30:54, Kyle Horimoto wrote: ...
4 years, 6 months ago (2016-06-08 21:30:36 UTC) #18
jingxuy
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h#newcode61 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h:61: static const int kWeaveVersion = 1; On 2016/06/08 00:06:29, ...
4 years, 6 months ago (2016-06-08 22:43:15 UTC) #19
Tim Song
https://codereview.chromium.org/2031953003/diff/180001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/180001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode16 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:16: nit: consistent spacing for this block. https://codereview.chromium.org/2031953003/diff/180001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode29 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:29: BluetoothLowEnergyWeavePacketGenerator::Factory::factory_instance_ ...
4 years, 6 months ago (2016-06-09 22:45:35 UTC) #22
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode69 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:69: SetIntField(packet, 3, packet_size_); On 2016/06/08 21:30:35, jingxuy wrote: > ...
4 years, 6 months ago (2016-06-09 22:55:44 UTC) #23
Kyle Horimoto
Also, one more thing: Please make your CL description more precise. Use this as your ...
4 years, 6 months ago (2016-06-09 22:58:55 UTC) #24
jingxuy
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode69 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:69: SetIntField(packet, 3, packet_size_); On 2016/06/09 22:55:42, Kyle Horimoto wrote: ...
4 years, 6 months ago (2016-06-11 00:49:32 UTC) #25
sacomoto
Sorry for the delay. Let me know if skipped some comments that was directed to ...
4 years, 6 months ago (2016-06-13 16:05:19 UTC) #26
Kyle Horimoto
Please update your CL title/description. As I've mentioned previously, your CL should be easily understood ...
4 years, 6 months ago (2016-06-13 17:55:53 UTC) #27
jingxuy
https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/40001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode144 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:144: On 2016/06/13 16:05:18, sacomoto wrote: > On 2016/06/08 21:30:36, ...
4 years, 6 months ago (2016-06-17 00:56:45 UTC) #29
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); Instead of passing |&packet| everywhere, just make ...
4 years, 6 months ago (2016-06-17 04:04:12 UTC) #30
sacomoto
https://codereview.chromium.org/2031953003/diff/240001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h (right): https://codereview.chromium.org/2031953003/diff/240001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h#newcode43 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h:43: }; On 2016/06/17 00:56:45, jingxuy wrote: > On 2016/06/13 ...
4 years, 6 months ago (2016-06-17 15:38:05 UTC) #31
jingxuy
https://codereview.chromium.org/2031953003/diff/240001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h (right): https://codereview.chromium.org/2031953003/diff/240001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h#newcode43 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.h:43: }; On 2016/06/17 15:38:04, sacomoto wrote: > On 2016/06/17 ...
4 years, 6 months ago (2016-06-17 18:59:00 UTC) #32
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); On 2016/06/17 04:04:12, Kyle Horimoto wrote: > ...
4 years, 6 months ago (2016-06-20 18:01:24 UTC) #33
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); On 2016/06/20 18:01:23, Kyle Horimoto wrote: > ...
4 years, 6 months ago (2016-06-20 21:29:32 UTC) #34
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); On 2016/06/20 21:29:32, jingxuy wrote: > On ...
4 years, 6 months ago (2016-06-20 21:52:17 UTC) #35
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode17 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:17: using proximity_auth::BluetoothLowEnergyWeavePacketGenerator; On 2016/06/20 21:52:17, Kyle Horimoto wrote: > ...
4 years, 6 months ago (2016-06-21 01:46:56 UTC) #36
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); On 2016/06/20 21:52:17, Kyle Horimoto wrote: > ...
4 years, 6 months ago (2016-06-21 02:15:29 UTC) #37
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode64 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:64: SetControlCommand(&packet, ControlCommand::CONNECTION_REQUEST); On 2016/06/21 02:15:29, Kyle Horimoto wrote: > ...
4 years, 6 months ago (2016-06-21 06:03:11 UTC) #38
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 06:03:11, jingxuy wrote: > ...
4 years, 6 months ago (2016-06-21 17:17:31 UTC) #39
sacomoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 17:17:30, Kyle Horimoto wrote: ...
4 years, 6 months ago (2016-06-21 17:39:22 UTC) #40
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 17:39:22, sacomoto wrote: > ...
4 years, 6 months ago (2016-06-21 17:47:31 UTC) #41
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 17:47:31, jingxuy wrote: > ...
4 years, 6 months ago (2016-06-21 18:13:07 UTC) #42
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 18:13:07, jingxuy wrote: > ...
4 years, 6 months ago (2016-06-21 18:39:13 UTC) #43
jingxuy
https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/300001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:41: expected[1] = expected_reason_for_close; On 2016/06/21 18:39:12, Kyle Horimoto wrote: ...
4 years, 6 months ago (2016-06-21 22:32:11 UTC) #44
Kyle Horimoto
LGTM after you address this last comment. Great job - thanks for sticking through the ...
4 years, 6 months ago (2016-06-21 22:45:31 UTC) #45
jingxuy
https://codereview.chromium.org/2031953003/diff/380001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/380001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode265 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:265: const uint8_t kNumPackets = 9; On 2016/06/21 22:45:31, Kyle ...
4 years, 6 months ago (2016-06-22 18:07:10 UTC) #46
Tim Song
https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode111 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:111: DCHECK(!message.empty()); Return an empty vector instead. https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode131 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:131: packet->push_back(0); ...
4 years, 6 months ago (2016-06-22 18:41:32 UTC) #47
jingxuy
https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode111 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:111: DCHECK(!message.empty()); On 2016/06/22 18:41:31, Tim Song wrote: > Return ...
4 years, 6 months ago (2016-06-22 19:07:02 UTC) #48
Tim Song
lgtm https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode156 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:156: uint8_t* network_val_ptr = (uint8_t*)(&network_val); On 2016/06/22 19:07:02, jingxuy ...
4 years, 6 months ago (2016-06-22 19:32:10 UTC) #49
jingxuy
https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc (right): https://codereview.chromium.org/2031953003/diff/440001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc#newcode131 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator.cc:131: packet->push_back(0); On 2016/06/22 18:41:31, Tim Song wrote: > Instead ...
4 years, 6 months ago (2016-06-22 21:06:43 UTC) #50
sacomoto
LGTM. The code looks very good. Thanks, Jing! https://codereview.chromium.org/2031953003/diff/480001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/480001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode112 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:112: generator->SetDataPacketSize(kSelectedPacketSize); ...
4 years, 6 months ago (2016-06-23 14:53:16 UTC) #51
jingxuy
https://codereview.chromium.org/2031953003/diff/480001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc File components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc (right): https://codereview.chromium.org/2031953003/diff/480001/components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc#newcode112 components/proximity_auth/ble/bluetooth_low_energy_weave_packet_generator_unittest.cc:112: generator->SetDataPacketSize(kSelectedPacketSize); On 2016/06/23 14:53:15, sacomoto wrote: > nit: Please ...
4 years, 6 months ago (2016-06-23 19:20:06 UTC) #52
jingxuy
4 years, 6 months ago (2016-06-23 23:55:28 UTC) #53
Kyle Horimoto
https://codereview.chromium.org/2031953003/diff/540001/components/proximity_auth/ble/BUILD.gn File components/proximity_auth/ble/BUILD.gn (right): https://codereview.chromium.org/2031953003/diff/540001/components/proximity_auth/ble/BUILD.gn#newcode17 components/proximity_auth/ble/BUILD.gn:17: "bluetooth_low_energy_weave_cnnnection.h", Why are all these files here? You should ...
4 years, 6 months ago (2016-06-24 00:28:43 UTC) #54
jingxuy
https://codereview.chromium.org/2031953003/diff/540001/components/proximity_auth/ble/BUILD.gn File components/proximity_auth/ble/BUILD.gn (right): https://codereview.chromium.org/2031953003/diff/540001/components/proximity_auth/ble/BUILD.gn#newcode17 components/proximity_auth/ble/BUILD.gn:17: "bluetooth_low_energy_weave_cnnnection.h", On 2016/06/24 00:28:43, Kyle Horimoto wrote: > Why ...
4 years, 6 months ago (2016-06-24 00:46:53 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031953003/560001
4 years, 6 months ago (2016-06-24 00:49:41 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/234788)
4 years, 6 months ago (2016-06-24 01:18:37 UTC) #60
sacomoto
I think you should also update the GYP files: https://cs.chromium.org/chromium/src/components/proximity_auth.gypi https://cs.chromium.org/chromium/src/components/components_tests.gyp tengs@, they are still ...
4 years, 6 months ago (2016-06-24 10:50:37 UTC) #61
Tim Song
GYP is deprecated, but I don't think it's ready to be completely removed yet, so ...
4 years, 6 months ago (2016-06-24 17:48:20 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2031953003/600001
4 years, 6 months ago (2016-06-24 20:44:38 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2031953003/620001
4 years, 6 months ago (2016-06-24 21:02:47 UTC) #71
commit-bot: I haz the power
Committed patchset #30 (id:620001)
4 years, 6 months ago (2016-06-24 22:07:25 UTC) #73
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 22:09:13 UTC) #75
Message was sent while issue was closed.
Patchset 30 (id:??) landed as
https://crrev.com/6742a47fff173bfa1bf0a4ec3a4655436c9c03e4
Cr-Commit-Position: refs/heads/master@{#401993}

Powered by Google App Engine
This is Rietveld 408576698