X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.cc;h=2e70df938868e37106d288f43778456695f10c5c;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=2bcb149f78f65d5b12ef2423f3396add4e7277ec;hpb=c778649a04a9835ecaad9108b9613832d76c2d15;p=senf.git diff --git a/Socket/SocketPolicy.test.cc b/Socket/SocketPolicy.test.cc index 2bcb149..2e70df9 100644 --- a/Socket/SocketPolicy.test.cc +++ b/Socket/SocketPolicy.test.cc @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -20,20 +20,21 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Unit tests +/** \file + \brief SocketPolicy unit tests */ -//#include "SocketPolicy.test.hh" +#include "SocketPolicy.test.hh" //#include "SocketPolicy.test.ih" // Custom includes +#include +#include +#include // enable_if + #include "SocketPolicy.hh" -#include "SocketPolicy.test.hh" #include "../Utils/auto_unit_test.hh" #include -#include -#include -#include // enable_if #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// @@ -132,7 +133,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) Policy3 p3; BOOST_CHECK_THROW( Policy1::checkBaseOf(p3), std::bad_cast ); - BOOST_CHECK_NO_THROW( Policy3::checkBaseOf(p1) ); + SENF_CHECK_NO_THROW( Policy3::checkBaseOf(p1) ); } }