20 len >= 0 ? len : strlen(str));
37 EXPECT_EQ(Base64::urlEncode(
range(
"hello world")),
"aGVsbG8gd29ybGQ");
41 EXPECT_EQ(Base64::urlEncode(
range(
"hello \nworld")),
"aGVsbG8gCndvcmxk");
42 EXPECT_EQ(Base64::urlDecode(
"aGVsbG8gCndvcmxk"),
"hello \nworld");
46 EXPECT_EQ(Base64::urlDecode(
"aGVsbG8gd29ybGQ"),
"hello world");
54 EXPECT_EQ(Base64::urlDecode(
"[[[[["),
"");
59 EXPECT_EQ(Base64::urlDecode(
"YWE"),
"aa");
60 EXPECT_EQ(Base64::urlDecode(
"YWFh"),
"aaa");
unique_ptr< IOBuf > encode(vector< HPACKHeader > &headers, HPACKEncoder &encoder)
#define EXPECT_EQ(val1, val2)
TokenBindingMessage decode(folly::io::Cursor &cursor)
Gen range(Value begin, Value end)
TEST(GTestEnvVarTest, Dummy)
Range< const unsigned char * > ByteRange