From 6765a83b1510d9248575deecf3e0f61e01f5746e Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 11 Jun 2014 19:27:33 +0200 Subject: [PATCH] Fix cookie tests for API changes. --- src/tests/kits/net/service/CookieTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/kits/net/service/CookieTest.cpp b/src/tests/kits/net/service/CookieTest.cpp index be0fb7dd0e9..72206177887 100644 --- a/src/tests/kits/net/service/CookieTest.cpp +++ b/src/tests/kits/net/service/CookieTest.cpp @@ -375,7 +375,7 @@ CookieTest::OrderTest() // Check that the cookie with the most specific path is sent first while (it.HasNext()) { - BNetworkCookie* cookie = it.Next(); + const BNetworkCookie* cookie = it.Next(); switch(count) { case 0: @@ -834,10 +834,10 @@ CookieTest::_GetCookie(BNetworkCookieJar& jar, const BUrl& url, const char* name) { BNetworkCookieJar::UrlIterator it = jar.GetUrlIterator(url); - BNetworkCookie* result = NULL; + const BNetworkCookie* result = NULL; while (it.HasNext()) { - BNetworkCookie* cookie = it.Next(); + const BNetworkCookie* cookie = it.Next(); if (cookie->Name() == name) { // Make sure the cookie is found only once. CPPUNIT_ASSERT(result == NULL);