diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-09 21:23:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-10 08:51:15 +0100 |
commit | e8bbb76827dd7a0e30d7d1db34a812a84d85f390 (patch) | |
tree | e00f9726de86b80843a2bdd68857c793e70c4a0c /tools/qa | |
parent | 2d25e3c354bfed19ee5c6f596cf57eb58ead9162 (diff) |
ensure correct export size type in stream operation
Diffstat (limited to 'tools/qa')
-rw-r--r-- | tools/qa/urlobj/tools_urlobj_test.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/qa/urlobj/tools_urlobj_test.cxx b/tools/qa/urlobj/tools_urlobj_test.cxx index 4763c2a8a0d7..da11113111d1 100644 --- a/tools/qa/urlobj/tools_urlobj_test.cxx +++ b/tools/qa/urlobj/tools_urlobj_test.cxx @@ -37,6 +37,25 @@ #define OUSTR_TO_STDSTR( oustr ) std::string( rtl::OUStringToOString( oustr, RTL_TEXTENCODING_ASCII_US ).getStr() ) +CPPUNIT_NS_BEGIN + +template<> struct assertion_traits<INetProtocol> +{ + static bool equal( const INetProtocol& x, const INetProtocol& y ) + { + return x == y; + } + + static std::string toString( const INetProtocol& x ) + { + OStringStream ost; + ost << static_cast<unsigned int>(x); + return ost.str(); + } +}; + +CPPUNIT_NS_END + namespace tools_urlobj { |