chromium/third_party/blink/renderer/platform/wtf/text/string_view_test.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/wtf/text/string_view.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "third_party/blink/renderer/platform/wtf/text/string_impl.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace WTF {

const char kChars[] =;
const LChar* const kChars8 =;
const UChar* const kChars16 =;

TEST(StringViewTest, ConstructionStringImpl8) {}

TEST(StringViewTest, ConstructionStringImpl16) {}

TEST(StringViewTest, ConstructionStringImplRef8) {}

TEST(StringViewTest, ConstructionStringImplRef16) {}

TEST(StringViewTest, ConstructionString8) {}

TEST(StringViewTest, ConstructionString16) {}

TEST(StringViewTest, ConstructionAtomicString8) {}

TEST(StringViewTest, ConstructionAtomicString16) {}

TEST(StringViewTest, ConstructionStringView8) {}

TEST(StringViewTest, ConstructionStringView16) {}

TEST(StringViewTest, SubstringContainsOnlyWhitespaceOrEmpty) {}

TEST(StringViewTest, ConstructionLiteral8) {}

TEST(StringViewTest, ConstructionLiteral16) {}

#if ENABLE_SECURITY_ASSERT
TEST(StringViewTest, OverflowInConstructor) {}

TEST(StringViewTest, OverflowInSet) {}
#endif  // ENABLE_SECURITY_ASSERT

TEST(StringViewTest, IsEmpty) {}

TEST(StringViewTest, ToString) {}

TEST(StringViewTest, ToAtomicString) {}

TEST(StringViewTest, ToStringImplSharing) {}

TEST(StringViewTest, NullString) {}

TEST(StringViewTest, IndexAccess) {}

TEST(StringViewTest, EqualIgnoringASCIICase) {}

TEST(StringViewTest, DeprecatedEqualIgnoringCase) {}

TEST(StringViewTest, NextCodePointOffset) {}

}  // namespace WTF