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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceError.h

Issue 1722893002: [LoaderTest] Add the gtest pretty printer for ResourceError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1274063003
Patch Set: Rebase Created 4 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/network/ResourceError.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceError.h b/third_party/WebKit/Source/platform/network/ResourceError.h
index ab9a60fcfd518316e5e3d7b9cc4d245cf25856fc..6dea74de1212aa1de51655ef98a423ebf63d6882 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.h
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h
@@ -30,6 +30,7 @@
#include "platform/PlatformExport.h"
#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
+#include <iosfwd>
namespace blink {
@@ -108,6 +109,9 @@ private:
inline bool operator==(const ResourceError& a, const ResourceError& b) { return ResourceError::compare(a, b); }
inline bool operator!=(const ResourceError& a, const ResourceError& b) { return !(a == b); }
+// Pretty printer for gtest. Declared here to avoid ODR violations.
+std::ostream& operator<<(std::ostream&, const ResourceError&);
+
} // namespace blink
#endif // ResourceError_h

Powered by Google App Engine
This is Rietveld 408576698