OSDN Git Service

RESTRICT AUTOMERGE: aaudio: improve test_atomic_fifo
authorPhil Burk <philburk@google.com>
Mon, 3 Dec 2018 18:10:21 +0000 (10:10 -0800)
committerJP Sugarbroad <jpsugar@google.com>
Mon, 14 Jan 2019 22:56:23 +0000 (14:56 -0800)
commitffd2e8af7619dd7f6c5c74be65e6d8f506d67e2e
tree09f80106246eda3a2478447ea40a0b3114e042de
parentd65253514a40ec0ae8278bb2119ec94ac2b1abf3
RESTRICT AUTOMERGE: aaudio: improve test_atomic_fifo

Check for the effects of setting a bogus counter.
Check for writes to memory surrounding the FIFO.
Check for negative array indices.

Bug: 120789744
Test: this is a test
Change-Id: Ia30cdef7f9d60f0a98b9af964cb3b3159df37dc9
(cherry picked from commit 31a8d44075f37f75d5912d79a43d777587b2d695)
media/libaaudio/tests/Android.mk
media/libaaudio/tests/test_atomic_fifo.cpp [new file with mode: 0644]