Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Side by Side Diff: Source/wtf/testing/WTFTestHelpers.h

Issue 48523009: Fix unused functions warnings on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« Source/core/loader/FrameLoader.cpp ('K') | « Source/core/svg/SVGFontFaceElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698