Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_GRPC_SUPPORT_TEST_QUIC_TEST_SERVER_H_ | 5 #ifndef COMPONENTS_GRPC_SUPPORT_TEST_QUIC_TEST_SERVER_H_ |
| 6 #define COMPONENTS_GRPC_SUPPORT_TEST_QUIC_TEST_SERVER_H_ | 6 #define COMPONENTS_GRPC_SUPPORT_TEST_QUIC_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace grpc_support { | 10 namespace grpc_support { |
| 11 | 11 |
| 12 bool StartQuicTestServer(); | 12 bool StartQuicTestServer(); |
| 13 | 13 |
| 14 void ShutdownQuicTestServer(); | 14 void ShutdownQuicTestServer(); |
| 15 | 15 |
| 16 int GetQuicTestServerPort(); | 16 int GetQuicTestServerPort(); |
| 17 | 17 |
| 18 extern const char kTestServerHost[]; | 18 extern const char kTestServerHost[]; |
| 19 extern const char kTestServerDomain[]; | |
|
mef
2017/06/19 15:02:33
nit: maybe move it above ServerHost? Alphabeticall
kapishnikov
2017/06/19 18:32:48
Done.
| |
| 19 extern const char kTestServerUrl[]; | 20 extern const char kTestServerUrl[]; |
| 20 | 21 |
| 21 extern const char kStatusHeader[]; | 22 extern const char kStatusHeader[]; |
| 22 | 23 |
| 23 extern const char kHelloBodyValue[]; | 24 extern const char kHelloBodyValue[]; |
| 24 extern const char kHelloStatus[]; | 25 extern const char kHelloStatus[]; |
| 25 | 26 |
| 26 extern const char kHelloHeaderName[]; | 27 extern const char kHelloHeaderName[]; |
| 27 extern const char kHelloHeaderValue[]; | 28 extern const char kHelloHeaderValue[]; |
| 28 | 29 |
| 29 extern const char kHelloTrailerName[]; | 30 extern const char kHelloTrailerName[]; |
| 30 extern const char kHelloTrailerValue[]; | 31 extern const char kHelloTrailerValue[]; |
| 31 | 32 |
| 32 // Simple Url returns response without HTTP/2 trailers. | 33 // Simple Url returns response without HTTP/2 trailers. |
| 33 extern const char kTestServerSimpleUrl[]; | 34 extern const char kTestServerSimpleUrl[]; |
| 34 extern const char kSimpleBodyValue[]; | 35 extern const char kSimpleBodyValue[]; |
| 35 extern const char kSimpleStatus[]; | 36 extern const char kSimpleStatus[]; |
| 36 extern const char kSimpleHeaderName[]; | 37 extern const char kSimpleHeaderName[]; |
| 37 extern const char kSimpleHeaderValue[]; | 38 extern const char kSimpleHeaderValue[]; |
| 38 | 39 |
| 39 } // namespace grpc_support | 40 } // namespace grpc_support |
| 40 | 41 |
| 41 #endif // COMPONENTS_CRONET_IOS_TEST_QUIC_TEST_SERVER_H_ | 42 #endif // COMPONENTS_CRONET_IOS_TEST_QUIC_TEST_SERVER_H_ |
| OLD | NEW |