Fix cookie tests for API changes.
This commit is contained in:
@@ -375,7 +375,7 @@ CookieTest::OrderTest()
|
|||||||
|
|
||||||
// Check that the cookie with the most specific path is sent first
|
// Check that the cookie with the most specific path is sent first
|
||||||
while (it.HasNext()) {
|
while (it.HasNext()) {
|
||||||
BNetworkCookie* cookie = it.Next();
|
const BNetworkCookie* cookie = it.Next();
|
||||||
switch(count)
|
switch(count)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@@ -834,10 +834,10 @@ CookieTest::_GetCookie(BNetworkCookieJar& jar, const BUrl& url,
|
|||||||
const char* name)
|
const char* name)
|
||||||
{
|
{
|
||||||
BNetworkCookieJar::UrlIterator it = jar.GetUrlIterator(url);
|
BNetworkCookieJar::UrlIterator it = jar.GetUrlIterator(url);
|
||||||
BNetworkCookie* result = NULL;
|
const BNetworkCookie* result = NULL;
|
||||||
|
|
||||||
while (it.HasNext()) {
|
while (it.HasNext()) {
|
||||||
BNetworkCookie* cookie = it.Next();
|
const BNetworkCookie* cookie = it.Next();
|
||||||
if (cookie->Name() == name) {
|
if (cookie->Name() == name) {
|
||||||
// Make sure the cookie is found only once.
|
// Make sure the cookie is found only once.
|
||||||
CPPUNIT_ASSERT(result == NULL);
|
CPPUNIT_ASSERT(result == NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user