blob: 75a233acad264e5aeec01c54fcbe4fb152494ddd [file] [log] [blame]
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -07001#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
9static inline ::std::ostream& operator<<(::std::ostream& out, const android::String8& str) {
10 return out << str.string();
11}
12
13static 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