aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/str.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-23 16:55:35 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-23 16:55:35 -0300
commit5fd502941af27f52c8c92e27ab43abafe85351ed (patch)
treebd61128964993cdd4c850ebbb21b1a59680a8f8f /tests/libsample/str.h
parent8b21935e055b2761cea73d2c5f9e2b23409ac3c2 (diff)
Add hash function for Str and proper unit test.
Diffstat (limited to 'tests/libsample/str.h')
-rw-r--r--tests/libsample/str.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsample/str.h b/tests/libsample/str.h
index 7cf62acbe..9135d78a7 100644
--- a/tests/libsample/str.h
+++ b/tests/libsample/str.h
@@ -70,9 +70,11 @@ private:
std::string m_str;
friend LIBSAMPLE_API Str operator+(int number, const Str& str);
+ friend LIBSAMPLE_API unsigned int strHash(const Str& str);
};
LIBSAMPLE_API Str operator+(int number, const Str& str);
+LIBSAMPLE_API unsigned int strHash(const Str& str);
#endif // STR_H