strip Channel from all class names
[folly.git] / folly / wangle / channel / test / OutputBufferingHandlerTest.cpp
index e99d43e5061179ed43fd6afc2e831a740ede0344..a08509b653461d6430a3cd522bfc2212ea180fe4 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
-#include <folly/wangle/channel/ChannelPipeline.h>
+#include <folly/wangle/channel/Pipeline.h>
 #include <folly/wangle/channel/OutputBufferingHandler.h>
-#include <folly/wangle/channel/test/MockChannelHandler.h>
+#include <folly/wangle/channel/test/MockHandler.h>
 #include <folly/io/async/AsyncSocket.h>
 #include <gmock/gmock.h>
 #include <gtest/gtest.h>
@@ -25,18 +25,18 @@ using namespace folly;
 using namespace folly::wangle;
 using namespace testing;
 
-typedef StrictMock<MockChannelHandlerAdapter<
+typedef StrictMock<MockHandlerAdapter<
   IOBufQueue&,
   std::unique_ptr<IOBuf>>>
-MockHandler;
+MockBytesHandler;
 
 MATCHER_P(IOBufContains, str, "") { return arg->moveToFbString() == str; }
 
 TEST(OutputBufferingHandlerTest, Basic) {
-  MockHandler mockHandler;
+  MockBytesHandler mockHandler;
   EXPECT_CALL(mockHandler, attachPipeline(_));
-  ChannelPipeline<IOBufQueue&, std::unique_ptr<IOBuf>,
-    ChannelHandlerPtr<MockHandler, false>,
+  Pipeline<IOBufQueue&, std::unique_ptr<IOBuf>,
+    HandlerPtr<MockBytesHandler, false>,
     OutputBufferingHandler>
   pipeline(&mockHandler, OutputBufferingHandler{});