| Index: net/url_request/url_request_job_unittest.cc
|
| diff --git a/net/url_request/url_request_job_unittest.cc b/net/url_request/url_request_job_unittest.cc
|
| index d90fc9b8be172fe9bb453d877168496865ea97f3..8211456bf879bb1a8f7fd2c48c725aaf5dfe147c 100644
|
| --- a/net/url_request/url_request_job_unittest.cc
|
| +++ b/net/url_request/url_request_job_unittest.cc
|
| @@ -35,40 +35,21 @@ void BigGZipServer(const HttpRequestInfo* request,
|
| }
|
|
|
| const MockTransaction kGZip_Transaction = {
|
| - "http://www.google.com/gzyp",
|
| - "GET",
|
| - base::Time(),
|
| - "",
|
| - LOAD_NORMAL,
|
| + "http://www.google.com/gzyp", "GET", base::Time(), "", LOAD_NORMAL,
|
| "HTTP/1.1 200 OK",
|
| "Cache-Control: max-age=10000\n"
|
| "Content-Encoding: gzip\n"
|
| "Content-Length: 30\n", // Intentionally wrong.
|
| base::Time(),
|
| - "",
|
| - TEST_MODE_NORMAL,
|
| - &GZipServer,
|
| - 0,
|
| - OK
|
| -};
|
| + "", TEST_MODE_NORMAL, &GZipServer, 0, OK};
|
|
|
| const MockTransaction kRedirect_Transaction = {
|
| - "http://www.google.com/redirect",
|
| - "GET",
|
| - base::Time(),
|
| - "",
|
| - LOAD_NORMAL,
|
| + "http://www.google.com/redirect", "GET", base::Time(), "", LOAD_NORMAL,
|
| "HTTP/1.1 302 Found",
|
| "Cache-Control: max-age=10000\n"
|
| "Location: http://www.google.com/destination\n"
|
| "Content-Length: 5\n",
|
| - base::Time(),
|
| - "hello",
|
| - TEST_MODE_NORMAL,
|
| - NULL,
|
| - 0,
|
| - OK
|
| -};
|
| + base::Time(), "hello", TEST_MODE_NORMAL, NULL, 0, OK};
|
|
|
| } // namespace
|
|
|
| @@ -167,8 +148,8 @@ TEST(URLRequestJob, TransactionNotCachedWhenNetworkDelegateRedirects) {
|
| context.set_network_delegate(&network_delegate);
|
|
|
| TestDelegate d;
|
| - TestURLRequest req(GURL(kGZip_Transaction.url), DEFAULT_PRIORITY, &d,
|
| - &context);
|
| + TestURLRequest req(
|
| + GURL(kGZip_Transaction.url), DEFAULT_PRIORITY, &d, &context);
|
| AddMockTransaction(&kGZip_Transaction);
|
|
|
| req.set_method("GET");
|
|
|