// 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/char_iterator.h" #include "base/strings/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" namespace base { namespace i18n { // This test string contains 4 characters: // x // u with circumflex - 2 bytes in UTF8, 1 codeword in UTF16 // math double-struck A - 4 bytes in UTF8, 2 codewords in UTF16 // z static const char* const kTestString = …; TEST(CharIteratorsTest, TestUTF8) { … } TEST(CharIteratorsTest, TestUTF16_Empty) { … } TEST(CharIteratorsTest, TestUTF16) { … } TEST(CharIteratorsTest, TestUTF16_Rewind) { … } TEST(CharIteratorsTest, TestUTF16_UpperBound) { … } TEST(CharIteratorsTest, TestUTF16_LowerBound) { … } } // namespace i18n } // namespace base