danzh | 5887951 | 2020-06-08 12:25:12 -0700 | [diff] [blame] | 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 "net/third_party/quiche/src/quic/test_tools/quic_mock_syscall_wrapper.h" |
| 6 | |
| 7 | using testing::_; |
| 8 | using testing::Invoke; |
| 9 | |
| 10 | namespace quic { |
| 11 | namespace test { |
| 12 | |
| 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 |