blob: 3cce97eed80fa924e7788adef1b5e71fb199e249 [file] [log] [blame]
danzh58879512020-06-08 12:25:12 -07001// Copyright (c) 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/test_tools/quic_mock_syscall_wrapper.h"
6
7using testing::_;
8using testing::Invoke;
9
10namespace quic {
11namespace test {
12
13MockQuicSyscallWrapper::MockQuicSyscallWrapper(QuicSyscallWrapper* delegate) {
14 ON_CALL(*this, Sendmsg(_, _, _))
15 .WillByDefault(Invoke(delegate, &QuicSyscallWrapper::Sendmsg));
16
17 ON_CALL(*this, Sendmmsg(_, _, _, _))
18 .WillByDefault(Invoke(delegate, &QuicSyscallWrapper::Sendmmsg));
19}
20
21} // namespace test
22} // namespace quic