Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 1 | #ifndef __TEST_HELPERS_H |
2 | #define __TEST_HELPERS_H | ||||
3 | |||||
4 | #include <ostream> | ||||
5 | |||||
6 | #include <utils/String8.h> | ||||
7 | #include <utils/String16.h> | ||||
8 | |||||
9 | static inline ::std::ostream& operator<<(::std::ostream& out, const android::String8& str) { | ||||
10 | return out << str.string(); | ||||
11 | } | ||||
12 | |||||
13 | static inline ::std::ostream& operator<<(::std::ostream& out, const android::String16& str) { | ||||
14 | return out << android::String8(str).string(); | ||||
15 | } | ||||
16 | |||||
17 | #endif // __TEST_HELPERS_H |