• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // 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 "quiche/quic/test_tools/quic_mock_syscall_wrapper.h"
6 
7 using testing::_;
8 using testing::Invoke;
9 
10 namespace quic {
11 namespace test {
12 
MockQuicSyscallWrapper(QuicSyscallWrapper * delegate)13 MockQuicSyscallWrapper::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
23