/proc/self/cwd/test/mocks/buffer/mocks.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include "test/mocks/buffer/mocks.h" |
2 | | |
3 | | #include "source/common/common/assert.h" |
4 | | |
5 | | namespace Envoy { |
6 | | |
7 | | template <> |
8 | | MockBufferBase<Buffer::WatermarkBuffer>::MockBufferBase(std::function<void()> below_low, |
9 | | std::function<void()> above_high, |
10 | | std::function<void()> above_overflow) |
11 | 2.11k | : Buffer::WatermarkBuffer(below_low, above_high, above_overflow) {} |
12 | | |
13 | | template <> |
14 | | MockBufferBase<Buffer::WatermarkBuffer>::MockBufferBase() |
15 | 0 | : Buffer::WatermarkBuffer([&]() -> void {}, [&]() -> void {}, [&]() -> void {}) { |
16 | 0 | ASSERT(0); // This constructor is not supported for WatermarkBuffer. |
17 | 0 | } |
18 | | template <> |
19 | | MockBufferBase<Buffer::OwnedImpl>::MockBufferBase(std::function<void()>, std::function<void()>, |
20 | 0 | std::function<void()>) { |
21 | 0 | ASSERT(0); // This constructor is not supported for OwnedImpl. |
22 | 0 | } |
23 | | |
24 | | // NOLINTNEXTLINE(modernize-use-equals-default) |
25 | 0 | template <> MockBufferBase<Buffer::OwnedImpl>::MockBufferBase(){}; |
26 | | |
27 | 306k | MockBufferFactory::MockBufferFactory() = default; |
28 | 306k | MockBufferFactory::~MockBufferFactory() = default; |
29 | | |
30 | | } // namespace Envoy |