[PM] Fix move assignment operator for VoteReceipt
The move assignment operator was not properly cleaning up the current state before taking the values from the other instance. This CL fixes the bug and adds a test to ensures it works. Bug: 1139433 Change-Id: I100bf33600f7441ef798a9e9d66e092ffdc1e058 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2481444 Commit-Queue: Patrick Monette <pmonette@chromium.org> Commit-Queue: Chris Hamilton <chrisha@chromium.org> Reviewed-by:Chris Hamilton <chrisha@chromium.org> Cr-Commit-Position: refs/heads/master@{#818094}
Showing
Please register or sign in to comment