Fix Mac compile errors.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@178 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-02-01 00:27:34 +00:00
parent 64d9d8294c
commit 915f3673f8
1 changed files with 11 additions and 11 deletions

View File

@ -93,16 +93,16 @@ TEST(URLTest, ParseURL)
CefString spec(&parts.spec); CefString spec(&parts.spec);
ASSERT_EQ(spec, "http://www.example.com/"); ASSERT_EQ(spec, "http://www.example.com/");
ASSERT_EQ(parts.username.length, 0); ASSERT_EQ(parts.username.length, (size_t)0);
ASSERT_EQ(parts.password.length, 0); ASSERT_EQ(parts.password.length, (size_t)0);
CefString scheme(&parts.scheme); CefString scheme(&parts.scheme);
ASSERT_EQ(scheme, "http"); ASSERT_EQ(scheme, "http");
CefString host(&parts.host); CefString host(&parts.host);
ASSERT_EQ(host, "www.example.com"); ASSERT_EQ(host, "www.example.com");
ASSERT_EQ(parts.port.length, 0); ASSERT_EQ(parts.port.length, (size_t)0);
CefString path(&parts.path); CefString path(&parts.path);
ASSERT_EQ(path, "/"); ASSERT_EQ(path, "/");
ASSERT_EQ(parts.query.length, 0); ASSERT_EQ(parts.query.length, (size_t)0);
} }
// Parse the URL using scheme, host and path. // Parse the URL using scheme, host and path.
@ -114,16 +114,16 @@ TEST(URLTest, ParseURL)
CefString spec(&parts.spec); CefString spec(&parts.spec);
ASSERT_EQ(spec, "http://www.example.com/path/to.html"); ASSERT_EQ(spec, "http://www.example.com/path/to.html");
ASSERT_EQ(parts.username.length, 0); ASSERT_EQ(parts.username.length, (size_t)0);
ASSERT_EQ(parts.password.length, 0); ASSERT_EQ(parts.password.length, (size_t)0);
CefString scheme(&parts.scheme); CefString scheme(&parts.scheme);
ASSERT_EQ(scheme, "http"); ASSERT_EQ(scheme, "http");
CefString host(&parts.host); CefString host(&parts.host);
ASSERT_EQ(host, "www.example.com"); ASSERT_EQ(host, "www.example.com");
ASSERT_EQ(parts.port.length, 0); ASSERT_EQ(parts.port.length, (size_t)0);
CefString path(&parts.path); CefString path(&parts.path);
ASSERT_EQ(path, "/path/to.html"); ASSERT_EQ(path, "/path/to.html");
ASSERT_EQ(parts.query.length, 0); ASSERT_EQ(parts.query.length, (size_t)0);
} }
// Parse the URL using scheme, host, path and query. // Parse the URL using scheme, host, path and query.
@ -135,13 +135,13 @@ TEST(URLTest, ParseURL)
CefString spec(&parts.spec); CefString spec(&parts.spec);
ASSERT_EQ(spec, "http://www.example.com/path/to.html?foo=test&bar=test2"); ASSERT_EQ(spec, "http://www.example.com/path/to.html?foo=test&bar=test2");
ASSERT_EQ(parts.username.length, 0); ASSERT_EQ(parts.username.length, (size_t)0);
ASSERT_EQ(parts.password.length, 0); ASSERT_EQ(parts.password.length, (size_t)0);
CefString scheme(&parts.scheme); CefString scheme(&parts.scheme);
ASSERT_EQ(scheme, "http"); ASSERT_EQ(scheme, "http");
CefString host(&parts.host); CefString host(&parts.host);
ASSERT_EQ(host, "www.example.com"); ASSERT_EQ(host, "www.example.com");
ASSERT_EQ(parts.port.length, 0); ASSERT_EQ(parts.port.length, (size_t)0);
CefString path(&parts.path); CefString path(&parts.path);
ASSERT_EQ(path, "/path/to.html"); ASSERT_EQ(path, "/path/to.html");
CefString query(&parts.query); CefString query(&parts.query);