diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-01-28 11:18:25 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-01-28 11:18:25 +0100 |
commit | 505c27be641d9855aa682affb204f118b1ce69f1 (patch) | |
tree | 406d1323320961802695285315ce6f72cce6447a /cpp/test/Ice/stream/Client.cpp | |
parent | ICE-5191: support for zero-copy on x86_64 (diff) | |
download | ice-505c27be641d9855aa682affb204f118b1ce69f1.tar.bz2 ice-505c27be641d9855aa682affb204f118b1ce69f1.tar.xz ice-505c27be641d9855aa682affb204f118b1ce69f1.zip |
ICE-5198: zero-copy OutputStream::finished method
Diffstat (limited to 'cpp/test/Ice/stream/Client.cpp')
-rw-r--r-- | cpp/test/Ice/stream/Client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/test/Ice/stream/Client.cpp b/cpp/test/Ice/stream/Client.cpp index f8c72f07ebe..bc3bb6f95f9 100644 --- a/cpp/test/Ice/stream/Client.cpp +++ b/cpp/test/Ice/stream/Client.cpp @@ -175,6 +175,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) out->write(true); out->endEncapsulation(); out->finished(data); + pair<const Ice::Byte*, const Ice::Byte*> d = out->finished(); + test(d.second - d.first == data.size()); + test(vector<Ice::Byte>(d.first, d.second) == data); out = 0; in = Ice::createInputStream(communicator, data); |