// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_QUIC_MOCK_ENCRYPTER_H_ #define NET_QUIC_MOCK_ENCRYPTER_H_ #include <cstddef> #include <limits> #include "base/compiler_specific.h" #include "net/base/net_export.h" #include "net/third_party/quiche/src/quiche/quic/core/crypto/quic_encrypter.h" #include "net/third_party/quiche/src/quiche/quic/core/quic_types.h" namespace net { // A MockEncrypter is a QuicEncrypter that returns this plaintext followed by 12 // bytes of zeroes. No encryption or MAC is applied. This is used to allow // fuzzing to mutate plaintext packets. class MockEncrypter : public quic::QuicEncrypter { … }; } // namespace net #endif // NET_QUIC_MOCK_ENCRYPTER_H_