Explaining the annotation @VisibleForTesting

3,283 views
Skip to first unread message

axesh ajmera

unread,
Oct 3, 2013, 3:49:44 PM10/3/13
to chromium-dev

Hi,

I have seen this annotations  @VisibleForTesting  being used in android webview 
But the api's  around which this annotation is used are all public.

I also this annotation being used even in content module. Also this annotation is an interface in "third_party/guava" but nobody uses it.

can somebody please enlighten on usability of this annotation and hwo does it protect the method s along which its wrapped..??


I tried googling around but haven't came across any example or blog which explains the usecase of this annotation

--
Thanks,
Axesh Ajmera


Dan Alcantara

unread,
Oct 3, 2013, 5:03:53 PM10/3/13
to ajmer...@gmail.com, chromium-dev
It's an annotation that usually indicates that the method isn't more protected because access is needed for unit tests.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages