Skip to content

Commit

Permalink
minimalize fix for delay loading issue in windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Jul 10, 2024
1 parent 45a061d commit 50c323f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ namespace Aws
{
AWS_CORE_API extern const char SIGV4_SIGNER[];
AWS_CORE_API extern const char NULL_SIGNER[];
AWS_CORE_API const char* GetSigner();
AWS_CORE_API const char* GetNullSigner();
}

class AmazonWebServiceRequest;
Expand Down
8 changes: 0 additions & 8 deletions src/aws-cpp-sdk-core/source/client/AWSClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ static const std::chrono::milliseconds TIME_DIFF_MAX = std::chrono::minutes(4);
//-4 Minutes
static const std::chrono::milliseconds TIME_DIFF_MIN = std::chrono::minutes(-4);


AWS_CORE_API const char* Aws::Auth::GetSigner(){
return Aws::Auth::SIGV4_SIGNER;
}
AWS_CORE_API const char* Aws::Auth::GetNullSigner(){
return Aws::Auth::NULL_SIGNER;
}

CoreErrors AWSClient::GuessBodylessErrorType(Aws::Http::HttpResponseCode responseCode)
{
switch (responseCode)
Expand Down
4 changes: 2 additions & 2 deletions tests/aws-cpp-sdk-s3-unit-tests/S3UnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ TEST_F(S3UnitTest, S3EmbeddedErrorTestNonOKResponse) {

_mockHttpClient->AddResponseToReturn(mockResponse);

auto endpointResolutionOutcome = _s3Client->accessEndpointProvider()->ResolveEndpoint(request.GetEndpointContextParams()); //_s3Client->OverrideEndpoint("s3.amazonaws.com");
auto endpointResolutionOutcome = _s3Client->accessEndpointProvider()->ResolveEndpoint(request.GetEndpointContextParams());

const auto response = std::static_pointer_cast<S3TestClient>(_s3Client)->Aws::Client::AWSXMLClient::MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::GetSigner());
const auto response = std::static_pointer_cast<S3TestClient>(_s3Client)->Aws::Client::AWSXMLClient::MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, "dummy");

EXPECT_TRUE(response.GetError().GetExceptionName() == "InvalidAction");

Expand Down

0 comments on commit 50c323f

Please sign in to comment.