blob: 58b021dc61127406ca28bd856c8beb0d81cd4fda [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "quiche/quic/core/quic_syscall_wrapper.h"
#include "quiche/quic/platform/api/quic_test.h"
namespace quic {
namespace test {
class MockQuicSyscallWrapper : public QuicSyscallWrapper {
// Create a standard mock object.
MockQuicSyscallWrapper() = default;
// Create a 'mockable' object that delegates everything to |delegate| by
// default.
explicit MockQuicSyscallWrapper(QuicSyscallWrapper* delegate);
MOCK_METHOD(ssize_t, Sendmsg, (int sockfd, const msghdr*, int flags),
MOCK_METHOD(int, Sendmmsg,
(int sockfd, mmsghdr*, unsigned int vlen, int flags), (override));
} // namespace test
} // namespace quic