|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::credentials::v1::GenerateAccessTokenResponse >, GenerateAccessToken,(google::iam::credentials::v1::GenerateAccessTokenRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::credentials::v1::GenerateIdTokenResponse >, GenerateIdToken,(google::iam::credentials::v1::GenerateIdTokenRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::credentials::v1::SignBlobResponse >, SignBlob,(google::iam::credentials::v1::SignBlobRequest const &request),(override)) |
|
| MOCK_METHOD (StatusOr< google::iam::credentials::v1::SignJwtResponse >, SignJwt,(google::iam::credentials::v1::SignJwtRequest const &request),(override)) |
|
virtual Options | options () |
|
virtual StatusOr< google::iam::credentials::v1::GenerateAccessTokenResponse > | GenerateAccessToken (google::iam::credentials::v1::GenerateAccessTokenRequest const &request) |
|
virtual StatusOr< google::iam::credentials::v1::GenerateIdTokenResponse > | GenerateIdToken (google::iam::credentials::v1::GenerateIdTokenRequest const &request) |
|
virtual StatusOr< google::iam::credentials::v1::SignBlobResponse > | SignBlob (google::iam::credentials::v1::SignBlobRequest const &request) |
|
virtual StatusOr< google::iam::credentials::v1::SignJwtResponse > | SignJwt (google::iam::credentials::v1::SignJwtRequest const &request) |
|
A class to mock IAMCredentialsConnection
.
Application developers may want to test their code with simulated responses, including errors, from an object of type IAMCredentialsClient
. To do so, construct an object of type IAMCredentialsClient
with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.
- See also
- This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of
*Client
and *Connection
.