chromium/third_party/perfetto/src/trace_processor/containers/bit_vector_unittest.cc

/*
 * Copyright (C) 2019 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/trace_processor/containers/bit_vector.h"

#include <bitset>
#include <cstdint>
#include <random>
#include <utility>
#include <vector>

#include "perfetto/protozero/scattered_heap_buffer.h"
#include "test/gtest_and_gmock.h"

#include "protos/perfetto/trace_processor/serialization.pbzero.h"

namespace perfetto::trace_processor {
namespace {
ElementsAre;
IsEmpty;
UnorderedElementsAre;

TEST(BitVectorUnittest, CreateAllTrue) {}

TEST(BitVectorUnittest, CreateAllFalse) {}

TEST(BitVectorUnittest, Set) {}

TEST(BitVectorUnittest, Clear) {}

TEST(BitVectorUnittest, AppendToEmpty) {}

TEST(BitVectorUnittest, AppendToExisting) {}

TEST(BitVectorUnittest, CountSetBits) {}

TEST(BitVectorUnittest, IndexOfNthSet) {}

TEST(BitVectorUnittest, Resize) {}

TEST(BitVectorUnittest, ResizeHasCorrectCount) {}

TEST(BitVectorUnittest, AppendAfterResizeDown) {}

TEST(BitVectorUnittest, UpdateSetBits) {}

TEST(BitVectorUnittest, UpdateSetBitsSmallerPicker) {}

TEST(BitVectorUnittest, UpdateSetBitsWordBoundary) {}

TEST(BitVectorUnittest, UpdateSetBitsStress) {}

TEST(BitVectorUnittest, SelectBitsSimple) {}

TEST(BitVectorUnittest, SelectBitsSmallerMain) {}

TEST(BitVectorUnittest, SelectBitsLarge) {}

TEST(BitVectorUnittest, SelectBitsLargeSmallerMain) {}

TEST(BitVectorUnittest, SelectBitsDense) {}

TEST(BitVectorUnittest, SelectBitsEnd) {}

TEST(BitVectorUnittest, SelectBitsOob) {}

TEST(BitVectorUnittest, IntersectRange) {}

TEST(BitVectorUnittest, IntersectRangeFromStart) {}

TEST(BitVectorUnittest, IntersectRange2) {}

TEST(BitVectorUnittest, IntersectRangeAfterWord) {}

TEST(BitVectorUnittest, IntersectRangeSetBitsBeforeRange) {}

TEST(BitVectorUnittest, IntersectRangeSetBitOnBoundary) {}

TEST(BitVectorUnittest, IntersectRangeStressTest) {}

TEST(BitVectorUnittest, IntersectRangeAppendFalse) {}

TEST(BitVectorUnittest, Range) {}

TEST(BitVectorUnittest, RangeStressTest) {}

TEST(BitVectorUnittest, BuilderSkip) {}

TEST(BitVectorUnittest, BuilderSkipAll) {}

TEST(BitVectorUnittest, BuilderBitsInCompleteWordsUntilFull) {}

TEST(BitVectorUnittest, BuilderBitsUntilWordBoundaryOrFull) {}

TEST(BitVectorUnittest, Builder) {}

TEST(BitVectorUnittest, BuilderCountSetBits) {}

TEST(BitVectorUnittest, BuilderStressTest) {}

TEST(BitVectorUnittest, FromSortedIndexVectorEmpty) {}

TEST(BitVectorUnittest, FromSortedIndexVector) {}

TEST(BitVectorUnittest, FromSortedIndexVectorStressTestLargeValues) {}

TEST(BitVectorUnittest, FromUnsortedIndexVectorEmpty) {}

TEST(BitVectorUnittest, FromUnsortedIndexVector) {}

TEST(BitVectorUnittest, FromUnsortedIndexVectorStressTestLargeValues) {}

TEST(BitVectorUnittest, Not) {}

TEST(BitVectorUnittest, NotBig) {}

TEST(BitVectorUnittest, NotAppendAfter) {}

TEST(BitVectorUnittest, Or) {}

TEST(BitVectorUnittest, OrBig) {}

TEST(BitVectorUnittest, QueryStressTest) {}

TEST(BitVectorUnittest, GetSetBitIndices) {}

TEST(BitVectorUnittest, GetSetBitIndicesIntersectRange) {}

TEST(BitVectorUnittest, UpdateSetBitsGetSetBitIndices) {}

TEST(BitVectorUnittest, SerializeSimple) {}

TEST(BitVectorUnittest, SerializeDeserializeSimple) {}

}  // namespace
}  // namespace perfetto::trace_processor