// // Copyright 2019 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // span_unittests.cpp: Unit tests for the TSpan class. // #include "Common.h" #include <gtest/gtest.h> usingnamespaceangle; namespace { Span; constexpr size_t kSpanDataSize = …; constexpr unsigned int kSpanData[kSpanDataSize] = …; // Test that comparing spans work TEST(SpanTest, Comparison) { … } // Test indexing TEST(SpanTest, Indexing) { … } // Test for the various constructors TEST(SpanTest, Constructors) { … } // Test accessing the data directly TEST(SpanTest, DataAccess) { … } // Test front and back TEST(SpanTest, FrontAndBack) { … } // Test begin and end TEST(SpanTest, BeginAndEnd) { … } // Test reverse begin and end TEST(SpanTest, RbeginAndRend) { … } // Test first and last TEST(SpanTest, FirstAndLast) { … } // Test subspan TEST(SpanTest, Subspan) { … } } // anonymous namespace