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

Unified Diff: components/grpc_support/test/get_stream_engine.h

Issue 2836063005: [cronet] Add mechanism for restarting CronetEnvironment (Closed)
Patch Set: per #21 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
Index: components/grpc_support/test/get_stream_engine.h
diff --git a/components/grpc_support/test/get_stream_engine.h b/components/grpc_support/test/get_stream_engine.h
index 227733d4ab9ab107171ca3e9a69388da440230ef..6448f7cfbff3add04362a8743a2b7ee47f45b0ce 100644
--- a/components/grpc_support/test/get_stream_engine.h
+++ b/components/grpc_support/test/get_stream_engine.h
@@ -14,6 +14,18 @@ namespace grpc_support {
// and should have kTestServerHost configured as a QUIC server.
stream_engine* GetTestStreamEngine(int port);
+// Starts the stream_engine* for testing with the QuicTestServer.
+// Has the same properties as GetTestStreamEngine. This function is
+// used when the stream_engine* needs to be shut down and restarted
+// 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.
+// stream test cases and all other tests for the engine; this is the
+// situation for Cronet.
+void StartTestStreamEngine(int port);
+
+// Shuts a stream_engine* started with |StartTestStreamEngine| down.
+// See comment above.
+void ShutdownTestStreamEngine();
+
} // namespace grpc_support
#endif // COMPONENTS_GRPC_SUPPORT_TEST_GET_REQUEST_CONTEXT_GETTER_H_

Powered by Google App Engine
This is Rietveld 408576698