Lines Matching defs:value

14   // Appending a name-value pair to a URL without a query component.
15 EXPECT_EQ("http://example.com/path?name=value",
17 "name", "value").spec());
19 // Appending a name-value pair to a URL with a query component.
22 EXPECT_EQ("http://example.com/path?existing=one&name=value",
24 "name", "value").spec());
26 // Appending a name-value pair with unsafe characters included. The
35 // Appending a name-value pair to a URL without a query component.
36 EXPECT_EQ("http://example.com/path?name=value",
38 "name", "value").spec());
40 // Appending a name-value pair to a URL with a query component.
43 EXPECT_EQ("http://example.com/path?existing=one&name=value",
46 "name", "value").spec());
48 // Appending a name-value pair with unsafe characters included. The
55 // Replace value of an existing paramater.
61 // Replace a name-value pair with unsafe characters included. The
68 // Replace the value of first parameter with this name only.
85 GURL url("http://example.com/path?name=value&boolParam&"
87 std::string value;
90 EXPECT_FALSE(GetValueForKeyInQuery(url, "non-exist", &value));
93 EXPECT_TRUE(GetValueForKeyInQuery(url, "name", &value));
94 EXPECT_EQ("value", value);
96 EXPECT_TRUE(GetValueForKeyInQuery(url, "boolParam", &value));
97 EXPECT_EQ("", value);
99 EXPECT_TRUE(GetValueForKeyInQuery(url, "url", &value));
100 EXPECT_EQ("http://test.com/q?n1=v1&n2", value);
105 std::string value;
108 EXPECT_FALSE(GetValueForKeyInQuery(url, "test", &value));
112 const GURL url("http://example.com/path?name=value&boolParam&"
119 EXPECT_EQ("value", it.GetValue());
120 EXPECT_EQ("value", it.GetUnescapedValue());