Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: net/url_request/url_fetcher_impl_unittest.cc

Issue 2035293002: Remove URLRequest::GetResponseCookies and URLRequestJob::GetResponseCookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments rogerta Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_fetcher_impl.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 TEST_F(URLFetcherBadHTTPSTest, BadHTTPS) { 1514 TEST_F(URLFetcherBadHTTPSTest, BadHTTPS) {
1515 WaitingURLFetcherDelegate delegate; 1515 WaitingURLFetcherDelegate delegate;
1516 delegate.CreateFetcher(test_server_->GetURL(kDefaultResponsePath), 1516 delegate.CreateFetcher(test_server_->GetURL(kDefaultResponsePath),
1517 URLFetcher::GET, CreateSameThreadContextGetter()); 1517 URLFetcher::GET, CreateSameThreadContextGetter());
1518 delegate.StartFetcherAndWait(); 1518 delegate.StartFetcherAndWait();
1519 1519
1520 EXPECT_EQ(URLRequestStatus::CANCELED, 1520 EXPECT_EQ(URLRequestStatus::CANCELED,
1521 delegate.fetcher()->GetStatus().status()); 1521 delegate.fetcher()->GetStatus().status());
1522 EXPECT_EQ(ERR_ABORTED, delegate.fetcher()->GetStatus().error()); 1522 EXPECT_EQ(ERR_ABORTED, delegate.fetcher()->GetStatus().error());
1523 EXPECT_EQ(-1, delegate.fetcher()->GetResponseCode()); 1523 EXPECT_EQ(-1, delegate.fetcher()->GetResponseCode());
1524 EXPECT_TRUE(delegate.fetcher()->GetCookies().empty()); 1524 EXPECT_FALSE(delegate.fetcher()->GetResponseHeaders());
1525 std::string data; 1525 std::string data;
1526 EXPECT_TRUE(delegate.fetcher()->GetResponseAsString(&data)); 1526 EXPECT_TRUE(delegate.fetcher()->GetResponseAsString(&data));
1527 EXPECT_TRUE(data.empty()); 1527 EXPECT_TRUE(data.empty());
1528 } 1528 }
1529 1529
1530 } // namespace 1530 } // namespace
1531 1531
1532 } // namespace net 1532 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_impl.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698