fix build
authorDave Watson <davejwatson@fb.com>
Fri, 21 Nov 2014 23:06:53 +0000 (15:06 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 15:58:41 +0000 (07:58 -0800)
Summary: bad merge with D1661169 caused a unittest to fail.  Update unittest

Test Plan: fbconfig -r folly/experimental/wangle; fbmake runtests

Reviewed By: jsedgwick@fb.com

Subscribers: doug, fugalh, njormrod, folly-diffs@

FB internal diff: D1698435

Signature: t1:1698435:1416611458:555b6b50baa1bc5850b10e19c9c94978f93f2a5a

folly/experimental/wangle/bootstrap/BootstrapTest.cpp

index b8461b45e7716b77347044e67387a3fb37b1651e..0d0d843fbb18f744b5eb095b4adcdc708331c6a8 100644 (file)
@@ -24,8 +24,7 @@
 using namespace folly::wangle;
 using namespace folly;
 
-typedef ChannelHandlerAdapter<IOBuf> BytesPassthrough;
-typedef ChannelPipeline<BytesPassthrough> Pipeline;
+typedef ChannelPipeline<IOBufQueue&, std::unique_ptr<IOBuf>> Pipeline;
 
 class TestServer : public ServerBootstrap<Pipeline> {
   Pipeline* newPipeline(std::shared_ptr<AsyncSocket>) {
@@ -49,7 +48,7 @@ class TestPipelineFactory : public PipelineFactory<Pipeline> {
  public:
   Pipeline* newPipeline(std::shared_ptr<AsyncSocket> sock) {
     pipelines++;
-    return new Pipeline(BytesPassthrough());
+    return new Pipeline();
   }
   std::atomic<int> pipelines{0};
 };