Chromium Code Reviews| Index: chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java |
| diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java |
| index 25fb441181fb564e6283a3789dce5c4d8b7c0e1f..cb2d89ab0e0435d9dc452bcf3eb9c56f940ee53d 100644 |
| --- a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java |
| +++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java |
| @@ -10,6 +10,9 @@ import android.os.Environment; |
| import android.text.TextUtils; |
| import android.util.Log; |
| +import com.google.android.gms.common.ConnectionResult; |
| +import com.google.android.gms.common.GoogleApiAvailability; |
| + |
| import junit.framework.TestCase; |
| import org.chromium.base.test.BaseInstrumentationTestRunner; |
| @@ -230,6 +233,12 @@ public class ChromeInstrumentationTestRunner extends BaseInstrumentationTestRunn |
| && !DeviceFormFactor.isTablet(getTargetContext())) { |
| return true; |
| } |
| + if (TextUtils.equals(restriction, Restriction.RESTRICTION_TYPE_GOOGLE_PLAY_SERVICES) |
| + && (ConnectionResult.SUCCESS != GoogleApiAvailability.getInstance() |
| + .isGooglePlayServicesAvailable(getTargetContext()))) { |
|
jbudorick
2016/01/13 14:43:50
It's not clear to me from the docs (https://develo
Yaron
2016/01/13 15:54:30
Hmm, I didn't rule out the possibility that undern
|
| + return true; |
| + } |
| + |
| return false; |
| } |
| } |