summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Frame.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-07 17:24:24 +0000
committerAlan Conway <aconway@apache.org>2008-10-07 17:24:24 +0000
commit071fff099bd18bbbadbb90e344052ef877cefc32 (patch)
treecb6c0fa042221a57c92abec8078103a0b48e281b /qpid/cpp/src/tests/Frame.cpp
parent9d29dc4fc9aeecab7023fc09ac239e5dbfd2ea1f (diff)
downloadqpid-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/Frame.cpp')
-rw-r--r--qpid/cpp/src/tests/Frame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/Frame.cpp b/qpid/cpp/src/tests/Frame.cpp
index 9ee3848b7b..11905911fa 100644
--- a/qpid/cpp/src/tests/Frame.cpp
+++ b/qpid/cpp/src/tests/Frame.cpp
@@ -33,7 +33,7 @@ QPID_AUTO_TEST_CASE(testContentBody) {
Frame f(42, AMQContentBody("foobar"));
AMQBody* body=f.getBody();
BOOST_CHECK(dynamic_cast<AMQContentBody*>(body));
- Buffer b(f.size());
+ Buffer b(f.encodedSize();
f.encode(b);
b.flip();
Frame g;
@@ -50,7 +50,7 @@ QPID_AUTO_TEST_CASE(testMethodBody) {
42, QueueDeclareBody(ProtocolVersion(), 1, "q", "altex",
true, false, true, false, true, args));
BOOST_CHECK_EQUAL(f.getChannel(), 42);
- Buffer b(f.size());
+ Buffer b(f.encodedSize();
f.encode(b);
b.flip();
Frame g;