chromium/third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents_test.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

class ArrayBufferContentsTest : public testing::Test {};

#if defined(ADDRESS_SANITIZER)
#define DISABLE_ON_ASAN
#else
#define DISABLE_ON_ASAN(test_name)
#endif  // defined(ADDRESS_SANITIZER)

// Disable on ASAN to avoid crashing on failed allocations, see
// https://crbug.com/1038741.
TEST_F(ArrayBufferContentsTest, DISABLE_ON_ASAN(AllocationFail)) {}

}  // namespace blink