#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stddef.h>
#include "components/viz/common/resources/resource_sizes.h"
#include "components/viz/common/resources/shared_image_format.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace viz {
namespace {
struct TestFormat { … };
const int kTestFormats = …;
class ResourceUtilTest : public testing::Test { … };
TEST_F(ResourceUtilTest, WidthInBytes) { … }
TEST_F(ResourceUtilTest, SizeInBytes) { … }
TEST_F(ResourceUtilTest, SizeInBytesOverflow) { … }
TEST_F(ResourceUtilTest, WidthOverflowDoesNotCrash) { … }
TEST_F(ResourceUtilTest, SizeInBitsOverflowBytesOk) { … }
TEST_F(ResourceUtilTest, RoundingOverflows) { … }
}
}