Skip to content

Commit

Permalink
add addUserAgentMiddleware fun to mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe committed Dec 24, 2024
1 parent e587f61 commit 7a321a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class MockHTTPAWSJson11ProtocolGenerator() : HTTPBindingProtocolGenerator(MockAW
// Intentionally empty
}

override fun addUserAgentMiddleware(ctx: ProtocolGenerator.GenerationContext, operation: OperationShape) {
// Intentionally empty
}

override fun getProtocolHttpBindingResolver(ctx: ProtocolGenerator.GenerationContext, defaultContentType: String):
HttpBindingResolver = MockJsonHttpBindingResolver(ctx, defaultContentType)
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class MockHTTPEC2QueryProtocolGenerator : HTTPBindingProtocolGenerator(MockEC2Qu
// Intentionally empty
}

override fun addUserAgentMiddleware(ctx: ProtocolGenerator.GenerationContext, operation: OperationShape) {
// Intentionally empty
}

override fun getProtocolHttpBindingResolver(ctx: ProtocolGenerator.GenerationContext, defaultContentType: String):
HttpBindingResolver = MockEC2QueryHttpBindingResolver(ctx, defaultContentType)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class MockHTTPRestJsonProtocolGenerator : HTTPBindingProtocolGenerator(MockRestJ
// Intentionally empty
}

override fun addUserAgentMiddleware(ctx: ProtocolGenerator.GenerationContext, operation: OperationShape) {
// Intentionally empty
}

override fun generateProtocolUnitTests(ctx: ProtocolGenerator.GenerationContext): Int {
val requestTestBuilder = HttpProtocolUnitTestRequestGenerator.Builder()
val responseTestBuilder = HttpProtocolUnitTestResponseGenerator.Builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class MockHTTPRestXMLProtocolGenerator : HTTPBindingProtocolGenerator(MockRestXM
// Intentionally empty
}

override fun addUserAgentMiddleware(ctx: ProtocolGenerator.GenerationContext, operation: OperationShape) {
// Intentionally empty
}

override fun generateProtocolUnitTests(ctx: ProtocolGenerator.GenerationContext): Int {
val requestTestBuilder = HttpProtocolUnitTestRequestGenerator.Builder()
val responseTestBuilder = HttpProtocolUnitTestResponseGenerator.Builder()
Expand Down

0 comments on commit 7a321a0

Please sign in to comment.