Skip to content

Commit

Permalink
cleanup(storage): inline UndecoratedFromMock() (#11708)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed May 23, 2023
1 parent 43ed8e2 commit 64aae9e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 32 deletions.
1 change: 0 additions & 1 deletion google/cloud/storage/google_cloud_cpp_storage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ if (BUILD_TESTING)
testing/client_unit_test.cc
testing/client_unit_test.h
testing/constants.h
testing/mock_client.cc
testing/mock_client.h
testing/mock_http_request.cc
testing/mock_http_request.h
Expand Down
1 change: 0 additions & 1 deletion google/cloud/storage/storage_client_testing.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ storage_client_testing_hdrs = [

storage_client_testing_srcs = [
"testing/client_unit_test.cc",
"testing/mock_client.cc",
"testing/mock_http_request.cc",
"testing/object_integration_test.cc",
"testing/random_names.cc",
Expand Down
29 changes: 0 additions & 29 deletions google/cloud/storage/testing/mock_client.cc

This file was deleted.

4 changes: 3 additions & 1 deletion google/cloud/storage/testing/mock_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ Client ClientFromMock(std::shared_ptr<MockClient> const& mock,
*
* This client does not retry on transient errors.
*/
Client UndecoratedClientFromMock(std::shared_ptr<MockClient> mock);
inline Client UndecoratedClientFromMock(std::shared_ptr<MockClient> mock) {
return internal::ClientImplDetails::CreateWithoutDecorations(std::move(mock));
}

} // namespace testing
} // namespace storage
Expand Down

0 comments on commit 64aae9e

Please sign in to comment.