url_to_filename_encoder_unittest.cc | 34 void CheckSegmentLength(const StringPiece& escaped_word) { 36 Tokenize(escaped_word, StringPiece("/"), &components); 43 void CheckValidChars(const StringPiece& escaped_word, char invalid_slash) { 49 for (size_t i = 0; i < escaped_word.size(); ++i) { 50 char c = escaped_word[i]; 59 string escaped_word, url; local 61 std::string(), in_word, '/', &escaped_word); local 62 EXPECT_EQ(gold_word, escaped_word); 63 CheckSegmentLength(escaped_word); 64 CheckValidChars(escaped_word, '\\'); 70 string escaped_word, url; local 72 std::string(), in_word, '\/', &escaped_word); local 330 string escaped_word; local 333 std::string(), long_word, '\\\\', &escaped_word); local [all...] |