X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.cc;h=534f40d6e70ccd27bc3b46d572dc19a7a8a34323;hb=9a988902090d28007578e93bffd809f6bd913155;hp=af167a4679898f6129d4466fb55c2e4cbf1efa8b;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/SocketPolicy.test.cc b/Socket/SocketPolicy.test.cc index af167a4..534f40d 100644 --- a/Socket/SocketPolicy.test.cc +++ b/Socket/SocketPolicy.test.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -38,7 +38,7 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -using namespace satcom::lib; +using namespace senf; namespace { struct INetAddressingPolicy : public AddressingPolicyBase {}; @@ -55,7 +55,7 @@ namespace { struct WritablePolicy : public WritePolicyBase {}; struct UnwritablePolicy : public WritePolicyBase {}; - + struct SocketBufferingPolicy : public BufferingPolicyBase {}; template @@ -65,7 +65,7 @@ namespace { ConvertibleValue(ConvertibleValue const & other) {} template - ConvertibleValue(ConvertibleValue const & other, + ConvertibleValue(ConvertibleValue const & other, typename boost::enable_if< SocketPolicyIsBaseOf >::type * = 0) {} @@ -73,8 +73,8 @@ namespace { { return *this; } template - typename boost::enable_if< SocketPolicyIsBaseOf, - ConvertibleValue >::type const & + typename boost::enable_if< SocketPolicyIsBaseOf, + ConvertibleValue >::type const & operator=(ConvertibleValue const & other) { return *this; } }; @@ -97,7 +97,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) ReadablePolicy, UnspecifiedWritePolicy, UnspecifiedBufferingPolicy> Policy2; - + BOOST_MPL_ASSERT(( boost::is_same )); typedef MakeSocketPolicy< @@ -121,7 +121,7 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) // The following should fail at compile time // BOOST_MPL_ASSERT(( SocketPolicyIsBaseOf )); - + ConvertibleValue p1; ConvertibleValue p3(p1); @@ -136,5 +136,8 @@ BOOST_AUTO_UNIT_TEST(socketPolicy) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: