veyron/lib/modules: fix bug in queue rw implementation and add unit test.

Bug: I forgot to shift the buffer upon consuming data from it, so it kept
reading from the beginning.

Should fix http://go/vissues/430.

Change-Id: I4a8fce8f20e10484e271abd2a9e25c158c2bb33b
3 files changed
tree: 9b97d7067da7f9015ace3b10227baaed009420a9
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/