Home
last modified time | relevance | path

Searched refs:IsStringUTF8 (Results 1 – 11 of 11) sorted by relevance

/external/libchrome/base/json/
Dstring_escape_unittest.cc38 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
43 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
48 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
55 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
62 EXPECT_TRUE(IsStringUTF8(out_quoted)); in TEST()
73 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
97 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
101 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
107 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
114 EXPECT_TRUE(IsStringUTF8(out)); in TEST()
[all …]
/external/libchrome/base/strings/
Dstring_util_unittest.cc325 TEST(StringUtilTest, IsStringUTF8) { in TEST() argument
326 EXPECT_TRUE(IsStringUTF8("abc")); in TEST()
327 EXPECT_TRUE(IsStringUTF8("\xc2\x81")); in TEST()
328 EXPECT_TRUE(IsStringUTF8("\xe1\x80\xbf")); in TEST()
329 EXPECT_TRUE(IsStringUTF8("\xf1\x80\xa0\xbf")); in TEST()
330 EXPECT_TRUE(IsStringUTF8("a\xc2\x81\xe1\x80\xbf\xf1\x80\xa0\xbf")); in TEST()
331 EXPECT_TRUE(IsStringUTF8("\xef\xbb\xbf" "abc")); // UTF-8 BOM in TEST()
334 EXPECT_FALSE(IsStringUTF8("\xed\xa0\x80\xed\xbf\xbf")); in TEST()
335 EXPECT_FALSE(IsStringUTF8("\xed\xa0\x8f")); in TEST()
336 EXPECT_FALSE(IsStringUTF8("\xed\xbf\xbf")); in TEST()
[all …]
Dstring_util.h285 BASE_EXPORT bool IsStringUTF8(StringPiece str);
Dstring_util.cc514 bool IsStringUTF8(StringPiece str) { in IsStringUTF8() function
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_perftest.cc139 bool IsStringUTF8(const std::string& str) { in IsStringUTF8() function
140 return base::IsStringUTF8(base::StringPiece(str)); in IsStringUTF8()
146 {&IsStringUTF8, "IsStringUTF8"}, {&IsString7Bit, "IsString7Bit"}};
/external/libchrome/base/test/launcher/
Dtest_results_tracker.cc357 if (IsStringUTF8(test_result.output_snippet)) { in SaveSummaryAsJSON()
389 bool lossless_summary = IsStringUTF8(result_part.summary); in SaveSummaryAsJSON()
402 bool lossless_message = IsStringUTF8(result_part.message); in SaveSummaryAsJSON()
/external/libchrome/base/
Dvalues.cc150 DCHECK(IsStringUTF8(string_value_)); in Value()
725 DCHECK(IsStringUTF8(key)); in HasKey()
736 DCHECK(IsStringUTF8(path)); in Set()
807 DCHECK(IsStringUTF8(path)); in Get()
947 DCHECK(IsStringUTF8(key)); in GetWithoutPathExpansion()
1058 DCHECK(IsStringUTF8(path)); in Remove()
1076 DCHECK(IsStringUTF8(key)); in RemoveWithoutPathExpansion()
Dcommand_line.cc383 DCHECK(IsStringUTF8(value)); in AppendArg()
/external/libbrillo/brillo/dbus/
Ddata_serialization_fuzzer.cc80 if (base::IsStringUTF8(str)) in GenerateValidUTF8()
/external/libchrome/components/policy/core/common/
Dpreg_parser.cc152 if (!base::IsStringUTF8(*value)) { in DecodePRegStringValue()
/external/libchrome/dbus/
Dmessage.cc493 CHECK(base::IsStringUTF8(value)); in AppendString()