Source release 19.5.0
This commit is contained in:
@@ -107,7 +107,7 @@ struct ParseUrlTests {
|
||||
const char* path;
|
||||
};
|
||||
|
||||
ParseUrlTests parse_url_tests[] = {
|
||||
const ParseUrlTests parse_url_tests[] = {
|
||||
{
|
||||
"https://code.google.com/p/googletest/wiki/Primer", // url
|
||||
"https", // scheme
|
||||
@@ -173,11 +173,11 @@ TEST_F(HttpSocketTest, ParseUrlTest) {
|
||||
std::string domain_name;
|
||||
std::string port;
|
||||
std::string path;
|
||||
ParseUrlTests* test = nullptr;
|
||||
const ParseUrlTests* test = nullptr;
|
||||
|
||||
for (test = &parse_url_tests[0]; test->url != nullptr; ++test) {
|
||||
bool ok = HttpSocket::ParseUrl(test->url, &scheme, &secure_connect,
|
||||
&domain_name, &port, &path);
|
||||
const bool ok = HttpSocket::ParseUrlForTest(
|
||||
test->url, &scheme, &secure_connect, &domain_name, &port, &path);
|
||||
EXPECT_TRUE(ok);
|
||||
if (ok) {
|
||||
EXPECT_EQ(test->scheme, scheme);
|
||||
|
||||
Reference in New Issue
Block a user