chromium/third_party/perfetto/src/tracing/test/fake_packet.cc

/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "src/tracing/test/fake_packet.h"

#include <ostream>

#include "perfetto/base/logging.h"
#include "perfetto/ext/tracing/core/shared_memory_abi.h"
#include "perfetto/protozero/proto_utils.h"
#include "src/tracing/service/trace_buffer.h"

ParseVarInt;
WriteVarInt;

namespace perfetto {

FakePacketFragment::FakePacketFragment(size_t size, char prefix) {}

FakePacketFragment::FakePacketFragment(const void* payload,
                                       size_t payload_size) {}

void FakePacketFragment::CopyInto(std::vector<uint8_t>* data) const {}

size_t FakePacketFragment::GetSizeHeader() const {}

bool FakePacketFragment::operator==(const FakePacketFragment& o) const {}

std::ostream& operator<<(std::ostream& os, const FakePacketFragment& packet) {}

FakeChunk::FakeChunk(TraceBuffer* t, ProducerID p, WriterID w, ChunkID c)
    :{}

FakeChunk& FakeChunk::AddPacket(size_t size, char seed, uint8_t packet_flag) {}

FakeChunk& FakeChunk::AddPacket(std::initializer_list<uint8_t> raw) {}

FakeChunk& FakeChunk::IncrementNumPackets() {}

FakeChunk& FakeChunk::SetFlags(uint8_t flags_to_set) {}

FakeChunk& FakeChunk::ClearBytes(size_t offset, size_t len) {}

FakeChunk& FakeChunk::SetUID(uid_t u) {}

FakeChunk& FakeChunk::PadTo(size_t chunk_size) {}

size_t FakeChunk::CopyIntoTraceBuffer(bool chunk_complete) {}

}  // namespace perfetto