summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/tests/TestHelpers.h
blob: 75a233acad264e5aeec01c54fcbe4fb152494ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __TEST_HELPERS_H
#define __TEST_HELPERS_H

#include <ostream>

#include <utils/String8.h>
#include <utils/String16.h>

static inline ::std::ostream& operator<<(::std::ostream& out, const android::String8& str) {
    return out << str.string();
}

static inline ::std::ostream& operator<<(::std::ostream& out, const android::String16& str) {
    return out << android::String8(str).string();
}

#endif // __TEST_HELPERS_H