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

Unified Diff: net/http/http_server_properties.h

Issue 2808843002: Add operator<<(ostream, AlternativeService) for test output formatting. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | net/http/http_server_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index eef795beb32844e132722675f068e6cd93ec256d..7efbf1ab5369500c835dd651d0c3781995ae3a14 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <ostream>
#include <string>
#include <tuple>
#include <vector>
@@ -109,6 +110,10 @@ struct NET_EXPORT AlternativeService {
uint16_t port;
};
+NET_EXPORT_PRIVATE std::ostream& operator<<(
+ std::ostream& os,
+ const AlternativeService& alternative_service);
+
struct NET_EXPORT AlternativeServiceInfo {
AlternativeServiceInfo() : alternative_service() {}
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698