Line data Source code
1 : // Copyright (c) 2021 The Bitcoin Core developers 2 : // Distributed under the MIT software license, see the accompanying 3 : // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 : 5 : #include <interfaces/echo.h> 6 : 7 : #include <memory> 8 : 9 : namespace interfaces { 10 : namespace { 11 : class EchoImpl : public Echo 12 : { 13 : public: 14 0 : std::string echo(const std::string& echo) override { return echo; } 15 : }; 16 : } // namespace 17 0 : std::unique_ptr<Echo> MakeEcho() { return std::make_unique<EchoImpl>(); } 18 : } // namespace interfaces