OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... | |
32 #define WTFTestHelpers_h | 32 #define WTFTestHelpers_h |
33 | 33 |
34 #include "wtf/text/CString.h" | 34 #include "wtf/text/CString.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 #include <ostream> // NOLINT | 37 #include <ostream> // NOLINT |
38 | 38 |
39 namespace WTF { | 39 namespace WTF { |
40 | 40 |
41 // Output stream operator so gTest's macros work with WebCore strings. | 41 // Output stream operator so gTest's macros work with WebCore strings. |
42 static std::ostream& operator<<(std::ostream& out, const String& str) | 42 inline std::ostream& operator<<(std::ostream& out, const String& str) |
Nico
2013/10/29 23:07:44
Why do you need this? This header defines a single
lgombos
2013/10/30 03:37:56
Fixed.
| |
43 { | 43 { |
44 return str.isEmpty() ? out : out << str.utf8().data(); | 44 return str.isEmpty() ? out : out << str.utf8().data(); |
45 } | 45 } |
46 | 46 |
47 } // namespace WTF | 47 } // namespace WTF |
48 | 48 |
49 | 49 |
50 #endif // WTFTestHelpers_h | 50 #endif // WTFTestHelpers_h |
OLD | NEW |