Skip to content

Commit

Permalink
Reduce the google Storage methods exposed to mocking.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 689904525
Change-Id: I0f3541ffbb0e5ac62c47c3445d5545b69da1867b
  • Loading branch information
laramiel authored and copybara-github committed Oct 25, 2024
1 parent a5dafa6 commit 5bc0c22
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tensorstore/kvstore/gcs_grpc/mock_storage_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ class MockStorage : public ::google::storage::v2::Storage::Service {
::google::storage::v2::Bucket);
TENSORSTORE_GRPC_MOCK(ListBuckets, ::google::storage::v2::ListBucketsRequest,
::google::storage::v2::ListBucketsResponse);
TENSORSTORE_GRPC_MOCK(LockBucketRetentionPolicy,
::google::storage::v2::LockBucketRetentionPolicyRequest,
::google::storage::v2::Bucket);
TENSORSTORE_GRPC_MOCK(GetIamPolicy, ::google::iam::v1::GetIamPolicyRequest,
::google::iam::v1::Policy);
TENSORSTORE_GRPC_MOCK(SetIamPolicy, ::google::iam::v1::SetIamPolicyRequest,
::google::iam::v1::Policy);
TENSORSTORE_GRPC_MOCK(TestIamPermissions,
::google::iam::v1::TestIamPermissionsRequest,
::google::iam::v1::TestIamPermissionsResponse);
TENSORSTORE_GRPC_MOCK(UpdateBucket,
::google::storage::v2::UpdateBucketRequest,
::google::storage::v2::Bucket);
TENSORSTORE_GRPC_MOCK(ComposeObject,
::google::storage::v2::ComposeObjectRequest,
::google::storage::v2::Object);
Expand Down Expand Up @@ -89,23 +76,6 @@ class MockStorage : public ::google::storage::v2::Storage::Service {
TENSORSTORE_GRPC_MOCK(QueryWriteStatus,
::google::storage::v2::QueryWriteStatusRequest,
::google::storage::v2::QueryWriteStatusResponse);
TENSORSTORE_GRPC_MOCK(GetServiceAccount,
::google::storage::v2::GetServiceAccountRequest,
::google::storage::v2::ServiceAccount);
TENSORSTORE_GRPC_MOCK(CreateHmacKey,
::google::storage::v2::CreateHmacKeyRequest,
::google::storage::v2::CreateHmacKeyResponse);
TENSORSTORE_GRPC_MOCK(DeleteHmacKey,
::google::storage::v2::DeleteHmacKeyRequest,
::google::protobuf::Empty);
TENSORSTORE_GRPC_MOCK(GetHmacKey, ::google::storage::v2::GetHmacKeyRequest,
::google::storage::v2::HmacKeyMetadata);
TENSORSTORE_GRPC_MOCK(ListHmacKeys,
::google::storage::v2::ListHmacKeysRequest,
::google::storage::v2::ListHmacKeysResponse);
TENSORSTORE_GRPC_MOCK(UpdateHmacKey,
::google::storage::v2::UpdateHmacKeyRequest,
::google::storage::v2::HmacKeyMetadata);
};

} // namespace tensorstore_grpc
Expand Down

0 comments on commit 5bc0c22

Please sign in to comment.