Index: net/test/spawned_test_server/base_test_server.cc |
diff --git a/net/test/spawned_test_server/base_test_server.cc b/net/test/spawned_test_server/base_test_server.cc |
index d7dbf95fb2d7014eeae85d17c383a74b4ffd9a36..793304f1880198c6fde028f6a367434193fcefa4 100644 |
--- a/net/test/spawned_test_server/base_test_server.cc |
+++ b/net/test/spawned_test_server/base_test_server.cc |
@@ -639,6 +639,13 @@ bool BaseTestServer::GenerateArguments(base::DictionaryValue* arguments) const { |
arguments->Set("ocsp-server-unavailable", |
base::Value::CreateNullValue()); |
} |
+ if (!ssl_options_.alpn_protocols.empty()) { |
+ std::unique_ptr<base::ListValue> alpn_protocols(new base::ListValue()); |
+ for (const std::string& proto : ssl_options_.alpn_protocols) { |
+ alpn_protocols->AppendString(proto); |
+ } |
+ arguments->Set("alpn-protocols", std::move(alpn_protocols)); |
+ } |
if (!ssl_options_.npn_protocols.empty()) { |
std::unique_ptr<base::ListValue> npn_protocols(new base::ListValue()); |
for (const std::string& proto : ssl_options_.npn_protocols) { |