| 346 | } |
| 347 | |
| 348 | void VerifyMaxMessageSizeInheritance(TTransport* source, TTransport* dest) { |
| 349 | // Verify that the source has the max message size set to either the internal |
| 350 | // limit or the external limit |
| 351 | int64_t source_max_message_size = source->getConfiguration()->getMaxMessageSize(); |
| 352 | DCHECK(source_max_message_size == ThriftInternalRpcMaxMessageSize() || |
| 353 | source_max_message_size == ThriftExternalRpcMaxMessageSize()); |
| 354 | // Verify that the destination transport has the same limit as the source |
| 355 | DCHECK_EQ(source_max_message_size, dest->getConfiguration()->getMaxMessageSize()); |
| 356 | } |
| 357 | } |
no test coverage detected