diff options
| author | Alan Conway <aconway@apache.org> | 2009-05-06 17:58:50 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-05-06 17:58:50 +0000 |
| commit | 7e40275a86bff25729059596f333110b95e73aec (patch) | |
| tree | 606294db9e2c2160f366e38259a77eb3bed62217 /qpid/cpp/src/tests | |
| parent | a64210902cfe4639bc4fa441adb4a6441e1b13fa (diff) | |
| download | qpid-python-7e40275a86bff25729059596f333110b95e73aec.tar.gz | |
DeliveryRecord optimizations.
Replace linear search with binary search.
Collapse multi-pass mark-then-erase to a signle pass.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@772384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
| -rw-r--r-- | qpid/cpp/src/tests/DeliveryRecordTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/DeliveryRecordTest.cpp b/qpid/cpp/src/tests/DeliveryRecordTest.cpp index 47c7157749..8ff7ad3584 100644 --- a/qpid/cpp/src/tests/DeliveryRecordTest.cpp +++ b/qpid/cpp/src/tests/DeliveryRecordTest.cpp @@ -53,7 +53,7 @@ QPID_AUTO_TEST_CASE(testSort) SequenceNumber expected(0); for (list<DeliveryRecord>::iterator i = records.begin(); i != records.end(); i++) { - BOOST_CHECK(i->matches(++expected)); + BOOST_CHECK(i->getId() == ++expected); } } |
