projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In tests use BOOST_AUTO_UNIT_TEST instead of BOOST_AUTO_TEST_CASE
[metaproxy-moved-to-github.git]
/
src
/
test_filter2.cpp
diff --git
a/src/test_filter2.cpp
b/src/test_filter2.cpp
index
b92d043
..
fb34da0
100644
(file)
--- a/
src/test_filter2.cpp
+++ b/
src/test_filter2.cpp
@@
-1,4
+1,4
@@
-/* $Id: test_filter2.cpp,v 1.12 2005-10-26 10:21:03 marc Exp $
+/* $Id: test_filter2.cpp,v 1.16 2005-12-02 12:21:07 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-118,21
+118,19
@@
public:
};
};
-BOOST_AUTO_TEST_CASE( testfilter2_1 )
+BOOST_AUTO_UNIT_TEST( testfilter2_1 )
{
try {
FilterConstant fc;
{
try {
FilterConstant fc;
- fc.name() = "FilterConstant";
FilterDouble fd;
FilterDouble fd;
- fd.name() = "FilterDouble";
{
yp2::RouterChain router1;
// test filter set/get/exception
{
yp2::RouterChain router1;
// test filter set/get/exception
- router1.rule(fc);
+ router1.append(fc);
- router1.rule(fd);
+ router1.append(fd);
yp2::Session session;
yp2::Origin origin;
yp2::Session session;
yp2::Origin origin;
@@
-147,8
+145,8
@@
BOOST_AUTO_TEST_CASE( testfilter2_1 )
{
yp2::RouterChain router2;
{
yp2::RouterChain router2;
- router2.rule(fd);
- router2.rule(fc);
+ router2.append(fd);
+ router2.append(fc);
yp2::Session session;
yp2::Origin origin;
yp2::Session session;
yp2::Origin origin;
@@
-171,7
+169,7
@@
BOOST_AUTO_TEST_CASE( testfilter2_1 )
}
}
-BOOST_AUTO_TEST_CASE( testfilter2_2 )
+BOOST_AUTO_UNIT_TEST( testfilter2_2 )
{
try {
FilterConstant fc;
{
try {
FilterConstant fc;