chromium/base/i18n/break_iterator_unittest.cc

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

#include "base/i18n/break_iterator.h"

#include <stddef.h>

#include <string_view>
#include <vector>

#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {
namespace i18n {

TEST(BreakIteratorTest, BreakWordEmpty) {}

TEST(BreakIteratorTest, BreakWord) {}

TEST(BreakIteratorTest, BreakWordWide16) {}

TEST(BreakIteratorTest, BreakWordWide32) {}

TEST(BreakIteratorTest, BreakWordThai) {}

// In some languages, the words are not broken by spaces. ICU provides a huge
// dictionary to detect word boundaries in Thai, Chinese, Japanese, Burmese,
// and Khmer. Due to the size of such a table, the part for Chinese and
// Japanese is not shipped on mobile.
#if !(BUILDFLAG(IS_IOS) || BUILDFLAG(IS_ANDROID))

TEST(BreakIteratorTest, BreakWordChinese) {}

TEST(BreakIteratorTest, BreakWordJapanese) {}

TEST(BreakIteratorTest, BreakWordChineseEnglish) {}

#endif  // !(BUILDFLAG(IS_IOS) || BUILDFLAG(IS_ANDROID))

TEST(BreakIteratorTest, BreakSpaceEmpty) {}

TEST(BreakIteratorTest, BreakSpace) {}

TEST(BreakIteratorTest, BreakSpaceSP) {}

TEST(BreakIteratorTest, BreakSpacekWide16) {}

TEST(BreakIteratorTest, BreakSpaceWide32) {}

TEST(BreakIteratorTest, BreakLineEmpty) {}

TEST(BreakIteratorTest, BreakLine) {}

TEST(BreakIteratorTest, BreakSentence) {}

TEST(BreakIteratorTest, IsSentenceBoundary) {}

TEST(BreakIteratorTest, BreakLineNL) {}

TEST(BreakIteratorTest, BreakLineWide16) {}

TEST(BreakIteratorTest, BreakLineWide32) {}

TEST(BreakIteratorTest, BreakCharacter) {}

// Test for https://code.google.com/p/chromium/issues/detail?id=411213
// We should be able to get valid substrings with GetString() function
// after setting new content by calling SetText().
TEST(BreakIteratorTest, GetStringAfterSetText) {}

TEST(BreakIteratorTest, GetStringView) {}

// Make sure that when not in RULE_BASED or BREAK_WORD mode we're getting
// IS_LINE_OR_CHAR_BREAK.
TEST(BreakIteratorTest, GetWordBreakStatusBreakLine) {}

// Make sure that in BREAK_WORD mode we're getting IS_WORD_BREAK and
// IS_SKIPPABLE_WORD when we should be. IS_WORD_BREAK should be returned when we
// finish going over non-punctuation characters while IS_SKIPPABLE_WORD should
// be returned on punctuation and spaces.
TEST(BreakIteratorTest, GetWordBreakStatusBreakWord) {}

}  // namespace i18n
}  // namespace base