#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/network/web_bundle/web_bundle_chunked_buffer.h"
#include "base/check.h"
#include "base/containers/span.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
constexpr char kNumeric10Chars[] = …;
constexpr char kSmallAlphabet10Chars[] = …;
constexpr char kLargeAlphabet10Chars[] = …;
}
class WebBundleChunkedBufferTest : public ::testing::Test { … };
TEST_F(WebBundleChunkedBufferTest, Chunk) { … }
TEST_F(WebBundleChunkedBufferTest, EmptyBuffer) { … }
TEST_F(WebBundleChunkedBufferTest, ReadTest_OneChunk) { … }
TEST_F(WebBundleChunkedBufferTest, ReadTest_MultipleChunks) { … }
TEST_F(WebBundleChunkedBufferTest, PartialBuffer) { … }
TEST_F(WebBundleChunkedBufferTest, FindChunk) { … }
TEST_F(WebBundleChunkedBufferTest, DataSource) { … }
}