[#BloombergLP-bslx-TestInStream_Proxy]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::TestInStream&lowbar;Proxy
:relfileprefix: ../../
:mrdocs:

Proxy for a test stream used by the exception&hyphen;test macros&period;

== Synopsis

Declared in `&lt;bslx&lowbar;testinstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class BSLX&lowbar;STREAM&lowbar;TYPE&gt;
class TestInStream&lowbar;Proxy
    : public xref:BloombergLP/bslx/TestInStream_ProxyBase.adoc[TestInStream&lowbar;ProxyBase]
----

== Description

This class provides a proxy to the test stream that is supplied to the `BSLX&lowbar;TESTINSTREAM&lowbar;EXCEPTION&lowbar;TEST&lowbar;BEGIN` macro&period; This proxy may be instantiated with `TestInStream`, or with a type that supports the same interface as `TestInStream`&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslx/TestInStream_ProxyBase.adoc[TestInStream&lowbar;ProxyBase]`
| Common base class for `TestInStream&lowbar;Proxy`&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslx/TestInStream_Proxy/2constructor.adoc[`TestInStream&lowbar;Proxy`]         [.small]#[constructor]#
| Create a proxy for the specified `stream`&period;
| xref:BloombergLP/bslx/TestInStream_Proxy/2destructor.adoc[`&#126;TestInStream&lowbar;Proxy`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this object&period;
| xref:BloombergLP/bslx/TestInStream_Proxy/setInputLimit.adoc[`setInputLimit`]  [.small]#[virtual]#
| Set the input limit on the proxied stream to the specified `limit`&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslx/TestInStream_getProxy.adoc[`TestInStream&lowbar;getProxy`]
| Return, by value, a test stream proxy for the specified parameterized `stream`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
