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

Unified Diff: net/http/http_server_properties.cc

Issue 1212813006: Pretty print AlternativeService in test macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « net/http/http_server_properties.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 82ce06e7e57a8a74ac93c63d2fc44fe0de2d93a7..e614b3864f28d594246f6475099ccb8a856abdac 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -4,6 +4,8 @@
#include "net/http/http_server_properties.h"
+#include <iostream>
+
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/stringprintf.h"
@@ -110,6 +112,11 @@ std::string AlternativeServiceInfo::ToString() const {
probability);
}
+std::ostream& operator<<(std::ostream& os,
+ const AlternativeService& alternative_service) {
+ return (os << alternative_service.ToString());
+}
+
// static
void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) {
ssl_config->next_protos.clear();
« no previous file with comments | « net/http/http_server_properties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698