summaryrefslogtreecommitdiff
path: root/indra/test/lltut.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2014-10-23 20:23:08 -0700
committerNat Goodspeed <nat@lindenlab.com>2014-10-23 20:23:08 -0700
commit918e2b629bd3dadfbe5288c0d72d93bcca1b8cfe (patch)
treeb5ae202882071bf8e954b5bcb875305e37d0dc41 /indra/test/lltut.h
parent642c334efa2dbd0bafca5b0dbb11a986cd5ab4a9 (diff)
Bring in new TUT library build. Clean up ensure_equals() overloads.
The new TUT library build eliminates the ambiguity about ensure_equals(const char*, ...) versus ensure_equals(const std::string&, ...). Now it's all based on const std::string&. Remove pointless const char* overloads and ambiguous forwarding templates. With clang in Xcode 6, any new datatypes we intend to use with ensure_equals() must have operator<<(std::ostream&, datatype) declared BEFORE lltut.h #includes tut.hpp. Reorder code in certain test source files to guarantee that visibility.
Diffstat (limited to 'indra/test/lltut.h')
-rwxr-xr-xindra/test/lltut.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/indra/test/lltut.h b/indra/test/lltut.h
index 6cb670b2a3..b334fb51e2 100755
--- a/indra/test/lltut.h
+++ b/indra/test/lltut.h
@@ -38,35 +38,24 @@ class LLURI;
namespace tut
{
- template <class T,class Q>
void ensure_equals(const std::string& msg,
- const Q& actual,const T& expected)
- { ensure_equals(msg.c_str(), actual, expected); }
-
- void ensure_equals(const char* msg,
const LLDate& actual, const LLDate& expected);
- void ensure_equals(const char* msg,
+ void ensure_equals(const std::string& msg,
const LLURI& actual, const LLURI& expected);
// std::vector<U8> is the current definition of LLSD::Binary. Because
// we're only forward-declaring LLSD in this header file, we can't
// directly reference that nested type. If the build complains that
- // there's no definition for either of these declarations, it could be
- // that LLSD::Binary has changed, and that these declarations must be
- // adjusted to match.
- void ensure_equals(const char* msg,
- const std::vector<U8>& actual, const std::vector<U8>& expected);
-
+ // there's no definition for this declaration, it could be that
+ // LLSD::Binary has changed, and that this declaration must be adjusted to
+ // match.
void ensure_equals(const std::string& msg,
const std::vector<U8>& actual, const std::vector<U8>& expected);
- void ensure_equals(const char* msg,
- const LLSD& actual, const LLSD& expected);
-
void ensure_equals(const std::string& msg,
const LLSD& actual, const LLSD& expected);
-
+
void ensure_starts_with(const std::string& msg,
const std::string& actual, const std::string& expectedStart);