#include "src/trace_processor/util/trace_blob_view_reader.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <optional>
#include <ostream>
#include <vector>
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "test/gtest_and_gmock.h"
namespace perfetto::trace_processor::util {
namespace {
ElementsAreArray;
Eq;
Optional;
Property;
SizeIs;
class SameDataAsMatcher { … };
SameDataAsMatcher SameDataAs(const TraceBlobView& expected_data) { … }
TraceBlobView CreateExpectedData(size_t expected_size) { … }
std::vector<TraceBlobView> Slice(const TraceBlobView& blob, size_t chunk_size) { … }
TraceBlobViewReader CreateTraceBlobViewReader(
const std::vector<TraceBlobView>& chunks) { … }
TEST(TraceBlobViewReader, ContiguousAccessAtOffset) { … }
TEST(TraceBlobViewReader, NoCopyIfDataIsContiguous) { … }
TEST(TraceBlobViewReader, PopRemovesData) { … }
}
}