tests: Fix Android build

Move unused variable within the #ifdef block that uses it.

Change-Id: Ia3a968c1f1f237b1e244493319f15cab8cda293f
1 file changed