From: Kyle Nekritz Date: Wed, 9 Mar 2016 19:18:37 +0000 (-0800) Subject: Add replay safety connector/handler to delay transactions scheduled on a replay-unsaf... X-Git-Tag: 2016.07.26~453 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d00a7c52ce911cadce6643ac99122d30127fa3f9;p=folly.git Add replay safety connector/handler to delay transactions scheduled on a replay-unsafe transport. Summary: This allows HTTPTransactions to be held back until the transport is replay-safe. Reviewed By: siyengar Differential Revision: D2974083 fb-gh-sync-id: 037b14c24a80c828a25e483b6873a8e782af0cb4 shipit-source-id: 037b14c24a80c828a25e483b6873a8e782af0cb4 --- diff --git a/folly/io/async/test/MockAsyncTransport.h b/folly/io/async/test/MockAsyncTransport.h index 8b4e9228..9703f34f 100644 --- a/folly/io/async/test/MockAsyncTransport.h +++ b/folly/io/async/test/MockAsyncTransport.h @@ -62,7 +62,9 @@ class MockAsyncTransport: public AsyncTransportWrapper { MOCK_CONST_METHOD0(isEorTrackingEnabled, bool()); MOCK_METHOD1(setEorTracking, void(bool)); MOCK_CONST_METHOD0(getWrappedTransport, AsyncTransportWrapper*()); - + MOCK_CONST_METHOD0(isReplaySafe, bool()); + MOCK_METHOD1(setReplaySafetyCallback, + void(AsyncTransport::ReplaySafetyCallback*)); }; class MockReplaySafetyCallback : public AsyncTransport::ReplaySafetyCallback {