robolectric/robolectric — pull request #861 by benelog (2013-12-04 19:07:14+00:00)
Title: Add Basic implementation of ShadowProcess

ShadowProcess can be used when mocking android.os.Process.myPid().

I found a identical class from the android git repository.

https://android.googlesource.com/platform/external/robolectric/+/df5951775e9c13526de56166ccdb841aa910a674%5E/src/main/java/com/xtremelabs/robolectric/shadows/ShadowProcess.java