This source file includes following definitions.
- TEST
#include "base/i18n/case_conversion.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
TEST(CaseConversionTest, UpperLower) {
string16 mixed(ASCIIToUTF16("Text with UPPer & lowER casE."));
const string16 expected_lower(ASCIIToUTF16("text with upper & lower case."));
const string16 expected_upper(ASCIIToUTF16("TEXT WITH UPPER & LOWER CASE."));
string16 result = base::i18n::ToLower(mixed);
EXPECT_EQ(expected_lower, result);
result = base::i18n::ToUpper(mixed);
EXPECT_EQ(expected_upper, result);
}
}
}