Don't warn in tests for deprecation

This change removes hundreds of lines of useless warnings, since
tests must check the continued working of old and deprecated methods.

Test: build manually and observe the warnings are gone
Flag: EXEMPT test-only
Change-Id: Ie50b2f35b09041e8e201b30b1e575e66e045bc44
1 file changed