diff options
Diffstat (limited to 'chromium/net/third_party/quiche/src/quic/core/qpack/qpack_test_utils.h')
-rw-r--r-- | chromium/net/third_party/quiche/src/quic/core/qpack/qpack_test_utils.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/chromium/net/third_party/quiche/src/quic/core/qpack/qpack_test_utils.h b/chromium/net/third_party/quiche/src/quic/core/qpack/qpack_test_utils.h deleted file mode 100644 index 42fa383a3ea..00000000000 --- a/chromium/net/third_party/quiche/src/quic/core/qpack/qpack_test_utils.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2018 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. - -#ifndef QUICHE_QUIC_CORE_QPACK_QPACK_TEST_UTILS_H_ -#define QUICHE_QUIC_CORE_QPACK_QPACK_TEST_UTILS_H_ - -#include <cstddef> -#include <functional> - -#include "net/third_party/quiche/src/quic/core/qpack/qpack_stream_sender_delegate.h" -#include "net/third_party/quiche/src/quic/platform/api/quic_test.h" - -namespace quic { -namespace test { - -// Called repeatedly to determine the size of each fragment when encoding or -// decoding. Must return a positive value. -using FragmentSizeGenerator = std::function<size_t()>; - -enum class FragmentMode { - kSingleChunk, - kOctetByOctet, -}; - -FragmentSizeGenerator FragmentModeToFragmentSizeGenerator( - FragmentMode fragment_mode); - -// Mock QpackUnidirectionalStreamSenderDelegate implementation. -class MockQpackStreamSenderDelegate : public QpackStreamSenderDelegate { - public: - ~MockQpackStreamSenderDelegate() override = default; - - MOCK_METHOD1(WriteStreamData, void(QuicStringPiece data)); -}; - -} // namespace test -} // namespace quic - -#endif // QUICHE_QUIC_CORE_QPACK_QPACK_TEST_UTILS_H_ |