Gardening M37 : Fix TestContentProvider not found when running the tests
on Android.

Following what upstream is doing we need to move the declaration
to various targets.

Relate to https://chromiumcodereview.appspot.com/23346011