// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40284755): Remove this and spanify to fix the errors. #pragma allow_unsafe_buffers #endif #include "net/base/test_data_stream.h" #include <algorithm> #include <cstring> namespace net { TestDataStream::TestDataStream() { … } // Fill |buffer| with |length| bytes of data from the stream. void TestDataStream::GetBytes(char* buffer, int length) { … } bool TestDataStream::VerifyBytes(const char *buffer, int length) { … } void TestDataStream::Reset() { … } // If there is no data spilled over from the previous index, advance the // index and fill the buffer. void TestDataStream::AdvanceIndex() { … } // Consume data from the spill buffer. void TestDataStream::Consume(int bytes) { … } } // namespace net