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_GET_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_ |
| 6 #define COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_ | 6 #define COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_ |
| 7 | 7 |
| 8 struct stream_engine; | 8 struct stream_engine; |
| 9 | 9 |
| 10 namespace grpc_support { | 10 namespace grpc_support { |
| 11 | 11 |
| 12 // Returns a stream_engine* for testing with the QuicTestServer. | 12 // Returns a stream_engine* for testing with the QuicTestServer. |
| 13 // The engine returned should resolve kTestServerHost as localhost:|port|, | 13 // The engine returned should resolve kTestServerHost as localhost:|port|, |
| 14 // and should have kTestServerHost configured as a QUIC server. | 14 // and should have kTestServerHost configured as a QUIC server. |
| 15 stream_engine* GetTestStreamEngine(int port); | 15 stream_engine* GetTestStreamEngine(int port); |
| 16 | 16 |
| 17 // Starts the stream_engine* for testing with the QuicTestServer. | |
| 18 // Has the same properties as GetTestStreamEngine. This function is | |
| 19 // used when the stream_engine* needs to be shut down and restarted | |
| 20 // between test cases (including between all of the bidirectional | |
|
mef
2017/04/27 14:58:20
nit: missing )
lilyhoughton
2017/05/01 15:31:35
Done.
| |
| 21 // stream test cases and all other tests for the engine; this is the | |
| 22 // situation for Cronet. | |
| 23 void StartTestStreamEngine(int port); | |
| 24 | |
| 25 // Shuts a stream_engine* started with |StartTestStreamEngine| down. | |
| 26 // See comment above. | |
| 27 void ShutdownTestStreamEngine(); | |
| 28 | |
| 17 } // namespace grpc_support | 29 } // namespace grpc_support |
| 18 | 30 |
| 19 #endif // COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_ | 31 #endif // COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |