diff options
author | Alan Conway <aconway@apache.org> | 2008-10-07 17:24:24 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-10-07 17:24:24 +0000 |
commit | 071fff099bd18bbbadbb90e344052ef877cefc32 (patch) | |
tree | cb6c0fa042221a57c92abec8078103a0b48e281b /qpid/cpp/src/tests/SessionState.cpp | |
parent | 9d29dc4fc9aeecab7023fc09ac239e5dbfd2ea1f (diff) | |
download | qpid-python-071fff099bd18bbbadbb90e344052ef877cefc32.tar.gz |
Rename size() to encodedSize() for encoded types to allow std collection interfaces for types like FieldTable and Array.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@702551 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SessionState.cpp')
-rw-r--r-- | qpid/cpp/src/tests/SessionState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/SessionState.cpp b/qpid/cpp/src/tests/SessionState.cpp index ba966da9b1..2db25f9fe8 100644 --- a/qpid/cpp/src/tests/SessionState.cpp +++ b/qpid/cpp/src/tests/SessionState.cpp @@ -85,7 +85,7 @@ AMQFrame contentFrameChar(char content, bool isLast=true) { } // Send frame & return size of frame. -size_t send(qpid::SessionState& s, const AMQFrame& f) { s.senderRecord(f); return f.size(); } +size_t send(qpid::SessionState& s, const AMQFrame& f) { s.senderRecord(f); return f.encodedSize(); } // Send transfer command with no content. size_t transfer0(qpid::SessionState& s) { return send(s, transferFrame(false)); } // Send transfer frame with single content frame. @@ -116,8 +116,8 @@ size_t transfers(qpid::SessionState& s, string content) { bind(transfer1Char, ref(s), _1)); } -size_t contentFrameSize(size_t n=1) { return AMQFrame(in_place<AMQContentBody>()).size() + n; } -size_t transferFrameSize() { return AMQFrame(in_place<MessageTransferBody>()).size(); } +size_t contentFrameSize(size_t n=1) { return AMQFrame(in_place<AMQContentBody>()).encodedSize() + n; } +size_t transferFrameSize() { return AMQFrame(in_place<MessageTransferBody>()).encodedSize(); } // ==== qpid::SessionState test classes |