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

Side by Side Diff: content/child/web_url_loader_impl_unittest.cc

Issue 2120233003: [OBSOLETE] Remove WebURLResponse::initialize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove non-const WrappedResourceResponse::bind() Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]"}, 662 "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]"},
663 {"2001:db8:85a3:0:0:8a2e:370:7334", "[2001:db8:85a3:0:0:8a2e:370:7334]"}, 663 {"2001:db8:85a3:0:0:8a2e:370:7334", "[2001:db8:85a3:0:0:8a2e:370:7334]"},
664 {"2001:db8:85a3::8a2e:370:7334", "[2001:db8:85a3::8a2e:370:7334]"}, 664 {"2001:db8:85a3::8a2e:370:7334", "[2001:db8:85a3::8a2e:370:7334]"},
665 {"::ffff:192.0.2.128", "[::ffff:192.0.2.128]"}}; 665 {"::ffff:192.0.2.128", "[::ffff:192.0.2.128]"}};
666 666
667 for (const auto& test : cases) { 667 for (const auto& test : cases) {
668 SCOPED_TRACE(test.ip); 668 SCOPED_TRACE(test.ip);
669 content::ResourceResponseInfo info; 669 content::ResourceResponseInfo info;
670 info.socket_address = net::HostPortPair(test.ip, 443); 670 info.socket_address = net::HostPortPair(test.ip, 443);
671 blink::WebURLResponse response; 671 blink::WebURLResponse response;
672 response.initialize();
673 WebURLLoaderImpl::PopulateURLResponse(url, info, &response, true); 672 WebURLLoaderImpl::PopulateURLResponse(url, info, &response, true);
674 EXPECT_EQ(test.expected, response.remoteIPAddress().utf8()); 673 EXPECT_EQ(test.expected, response.remoteIPAddress().utf8());
675 }; 674 };
676 } 675 }
677 676
678 } // namespace 677 } // namespace
679 } // namespace content 678 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698