[Nearby] Report 1:1 transfer status on the C++ side to JS side
A previous CL collaps transfer status on the C++ side. Only a limit number of transfer status updates are passed through to JS. This is blocking some testing automation: https://crbug.com/1136365#c19 For example, kComplete is mapped to kInProgress. This CL map 1:1 for all statuses. Manually verified using: Nearby Share tile for receiving a file. Nearby Share sheet to send a file. As a sender from Nearby Share sheet, select the receiver at sender side then reject the connection at receiver side. Run a JS script to register the onTransferUpdate event and check kComplete can be received when transmission done. Bug: 1149598 Change-Id: Ic5bfef95b4e51b16fbc895a42aad578840efa2dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543528Reviewed-by:James Vecore <vecore@google.com> Commit-Queue: Eric Lin <ericth@google.com> Cr-Commit-Position: refs/heads/master@{#828607}
Showing
Please register or sign in to comment