X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest_filter1.cpp;h=02b9fa7369e0f696336724e59a3b291e2e4b2f47;hb=b84218609efb976d5b5270bd9e95a3c421af3a13;hp=b78a18acaba62222e8e047994e48419171d2ed13;hpb=cba94f69f50a7789d498212dd59938087e8cbf9f;p=metaproxy-moved-to-github.git diff --git a/src/test_filter1.cpp b/src/test_filter1.cpp index b78a18a..02b9fa7 100644 --- a/src/test_filter1.cpp +++ b/src/test_filter1.cpp @@ -10,11 +10,9 @@ using namespace boost::unit_test; -class TFilter: public yp2::Filter { +class TFilter: public yp2::filter::Base { public: - yp2::Package & process(yp2::Package & package) const { - return package; - }; + void process(yp2::Package & package) const {}; }; @@ -31,9 +29,6 @@ BOOST_AUTO_TEST_CASE( test_filter1 ) BOOST_CHECK(filter.name() == "filter1 rename"); } - //catch(std::runtime_error &e ){ - // BOOST_CHECK (true); - //} catch ( ... ) { BOOST_CHECK (false); }