Google Cloud IAM C++ Client  1.40.2
A C++ Client Library for Google Cloud IAM
mock_iam_credentials_connection.h
Go to the documentation of this file.
1 // Copyright 2020 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 // Generated by the Codegen C++ plugin.
16 // If you make any local changes, they will be lost.
17 // source: google/iam/credentials/v1/iamcredentials.proto
18 
19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CREDENTIALS_CONNECTION_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CREDENTIALS_CONNECTION_H
21 
22 #include "google/cloud/iam/iam_credentials_connection.h"
23 #include <gmock/gmock.h>
24 
25 namespace google {
26 namespace cloud {
27 namespace iam_mocks {
29 
31  public:
32  MOCK_METHOD(Options, options, (), (override));
33 
34  MOCK_METHOD(
35  StatusOr<google::iam::credentials::v1::GenerateAccessTokenResponse>,
36  GenerateAccessToken,
37  (google::iam::credentials::v1::GenerateAccessTokenRequest const& request),
38  (override));
39 
40  MOCK_METHOD(
41  StatusOr<google::iam::credentials::v1::GenerateIdTokenResponse>,
42  GenerateIdToken,
43  (google::iam::credentials::v1::GenerateIdTokenRequest const& request),
44  (override));
45 
46  MOCK_METHOD(StatusOr<google::iam::credentials::v1::SignBlobResponse>,
47  SignBlob,
48  (google::iam::credentials::v1::SignBlobRequest const& request),
49  (override));
50 
51  MOCK_METHOD(StatusOr<google::iam::credentials::v1::SignJwtResponse>, SignJwt,
52  (google::iam::credentials::v1::SignJwtRequest const& request),
53  (override));
54 };
55 
57 } // namespace iam_mocks
58 } // namespace cloud
59 } // namespace google
60 
61 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CREDENTIALS_CONNECTION_H