// Copyright 2009 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file contains the unit tests for the bit utilities. #include "base/bits.h" #include <stddef.h> #include <limits> #include "testing/gtest/include/gtest/gtest.h" namespace base::bits { TEST(BitsTest, Log2Floor) { … } TEST(BitsTest, Log2Ceiling) { … } TEST(BitsTest, AlignUp) { … } TEST(BitsTest, AlignUpPointer) { … } TEST(BitsTest, AlignDown) { … } TEST(BitsTest, AlignDownPointer) { … } TEST(BitsTest, PowerOfTwoDeprecatedDoNotUse) { … } TEST(BitsTest, LeftMostBit) { … } } // namespace base::bits