Skip to content

Commit

Permalink
Fix cookie tests for API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed Jun 11, 2014
1 parent def1a05 commit 6765a83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/kits/net/service/CookieTest.cpp
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6765a83

Please sign in to comment.