https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
gRPC Code | HTTP Status Code |
---|---|
OK = 0 | 200 OK |
CANCELLED = 1 | 499 Client Closed Request |
UNKNOWN = 2 | 500 Internal Server Error |
INVALID_ARGUMENT = 3 | 400 Bad Request |
https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
gRPC Code | HTTP Status Code |
---|---|
OK = 0 | 200 OK |
CANCELLED = 1 | 499 Client Closed Request |
UNKNOWN = 2 | 500 Internal Server Error |
INVALID_ARGUMENT = 3 | 400 Bad Request |
Note that the file lives in the package as Picasso (src/androidTest/java/com/squareup/picasso). Otherwise we don't have access to targetToAction
package com.squareup.picasso;
import android.app.Activity;
import android.os.Handler;
import android.support.test.espresso.IdlingResource;
import android.support.test.runner.lifecycle.ActivityLifecycleCallback;
import android.support.test.runner.lifecycle.Stage;
import android.os.Parcel; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.mockito.invocation.InvocationOnMock; | |
import org.mockito.stubbing.Answer; | |
import static org.mockito.Matchers.anyInt; | |
import static org.mockito.Matchers.anyLong; | |
import static org.mockito.Matchers.anyString; | |
import static org.mockito.Mockito.doAnswer; |
// additional required configuration to hook into the build script | |
android { | |
signingConfigs { | |
release | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} |