unidirectional pipelines
[folly.git] / folly / wangle / bootstrap / BootstrapTest.cpp
index ddbd50ee672b96ce8c402f8c7e0e99a8296cb1ad..3e8908b87488f458ae6e80fbe09c209fc5b75635 100644 (file)
@@ -267,18 +267,12 @@ TEST(Bootstrap, ExistingSocket) {
 
 std::atomic<int> connections{0};
 
-class TestHandlerPipeline
-    : public HandlerAdapter<void*,
-                                   std::exception> {
+class TestHandlerPipeline : public InboundHandler<void*> {
  public:
   void read(Context* ctx, void* conn) {
     connections++;
     return ctx->fireRead(conn);
   }
-
-  Future<void> write(Context* ctx, std::exception e) {
-    return ctx->fireWrite(e);
-  }
 };
 
 template <typename HandlerPipeline>
@@ -316,17 +310,11 @@ TEST(Bootstrap, LoadBalanceHandler) {
   CHECK(connections == 1);
 }
 
-class TestUDPPipeline
-    : public HandlerAdapter<void*,
-                                   std::exception> {
+class TestUDPPipeline : public InboundHandler<void*> {
  public:
   void read(Context* ctx, void* conn) {
     connections++;
   }
-
-  Future<void> write(Context* ctx, std::exception e) {
-    return ctx->fireWrite(e);
-  }
 };
 
 TEST(Bootstrap, UDP) {