//===- IndexedAccessorTest.cpp - Indexed Accessor Tests -------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "gmock/gmock.h" usingnamespacellvm; usingnamespacellvm::detail; namespace { /// Simple indexed accessor range that wraps an array. template <typename T> struct ArrayIndexedAccessorRange : public indexed_accessor_range<ArrayIndexedAccessorRange<T>, T *, T> { … }; } // end anonymous namespace template <typename T> static void compareData(ArrayIndexedAccessorRange<T> range, ArrayRef<T> referenceData) { … } namespace { TEST(AccessorRange, SliceTest) { … } TEST(AccessorRange, EqualTest) { … } } // end anonymous namespace