1 /* 2 * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 #ifndef NET_DCSCTP_PUBLIC_MOCK_DCSCTP_SOCKET_FACTORY_H_ 11 #define NET_DCSCTP_PUBLIC_MOCK_DCSCTP_SOCKET_FACTORY_H_ 12 13 #include <memory> 14 15 #include "net/dcsctp/public/dcsctp_socket_factory.h" 16 #include "test/gmock.h" 17 18 namespace dcsctp { 19 20 class MockDcSctpSocketFactory : public DcSctpSocketFactory { 21 public: 22 MOCK_METHOD(std::unique_ptr<DcSctpSocketInterface>, 23 Create, 24 (absl::string_view log_prefix, 25 DcSctpSocketCallbacks& callbacks, 26 std::unique_ptr<PacketObserver> packet_observer, 27 const DcSctpOptions& options), 28 (override)); 29 }; 30 31 } // namespace dcsctp 32 33 #endif // NET_DCSCTP_PUBLIC_MOCK_DCSCTP_SOCKET_FACTORY_H_ 34