/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
GMOCK_METHOD1_(, noexcept, , readDataAvailable, void(size_t));
GMOCK_METHOD0_(, noexcept, , isBufferMovable, bool());
GMOCK_METHOD1_(, noexcept, ,
- readBufferAvailableInternal, void(std::shared_ptr<folly::IOBuf>));
+ readBufferAvailableInternal,
+ void(std::unique_ptr<folly::IOBuf>&));
GMOCK_METHOD0_(, noexcept, , readEOF, void());
GMOCK_METHOD1_(, noexcept, , readErr,
void(const AsyncSocketException&));
void readBufferAvailable(std::unique_ptr<folly::IOBuf> readBuf)
noexcept override {
- readBufferAvailableInternal(
- folly::to_shared_ptr(std::move(readBuf)));
+ readBufferAvailableInternal(readBuf);
}
};
void(size_t, const AsyncSocketException&));
};
-}}
+} // namespace test
+} // namespace folly