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
Support for scan authorisation.
[metaproxy-moved-to-github.git]
/
src
/
test_filter2.cpp
diff --git
a/src/test_filter2.cpp
b/src/test_filter2.cpp
index
14aa299
..
12d6ef5
100644
(file)
--- a/
src/test_filter2.cpp
+++ b/
src/test_filter2.cpp
@@
-1,4
+1,4
@@
-/* $Id: test_filter2.cpp,v 1.14 2005-10-29 22:23:36 marc Exp $
+/* $Id: test_filter2.cpp,v 1.17 2006-01-09 13:43:59 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-27,9
+27,6
@@
public:
package.data() = m_constant;
package.move();
};
package.data() = m_constant;
package.move();
};
- const std::string type() const {
- return "FilterConstant";
- };
void configure(const xmlNode* ptr = 0);
int get_constant() const { return m_constant; };
private:
void configure(const xmlNode* ptr = 0);
int get_constant() const { return m_constant; };
private:
@@
-118,13
+115,10
@@
public:
package.data() = package.data() * 2;
package.move();
};
package.data() = package.data() * 2;
package.move();
};
- const std::string type() const {
- return "FilterConstant";
- };
};
};
-BOOST_AUTO_TEST_CASE( testfilter2_1 )
+BOOST_AUTO_UNIT_TEST( testfilter2_1 )
{
try {
FilterConstant fc;
{
try {
FilterConstant fc;
@@
-144,7
+138,7
@@
BOOST_AUTO_TEST_CASE( testfilter2_1 )
pack.router(router1).move();
pack.router(router1).move();
- BOOST_CHECK (pack.data() == 2468);
+ BOOST_CHECK_EQUAL(pack.data(), 2468);
}
}
@@
-160,7
+154,7
@@
BOOST_AUTO_TEST_CASE( testfilter2_1 )
pack.router(router2).move();
pack.router(router2).move();
- BOOST_CHECK (pack.data() == 1234);
+ BOOST_CHECK_EQUAL(pack.data(), 1234);
}
}
@@
-175,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;