add ByteArrayRingBuffer

We want to manage the debug ring buffers by total spaced used,
rather than by the number of entries in the ring. Add a new
class, ByteArrayRingBuffer, to provide the needed functionality.

BUG=27264379
TEST=(new) unit tests

Change-Id: I6e1ce82e028fc621f3fc9c96a5cb0cbd71c2d4e3
2 files changed
tree: 29ccf4b16b615c41834c4850ea818b884841f52e
  1. service/
  2. tests/