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

Side by Side Diff: third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp

Issue 2236573003: Update equalIgnoreCase to equalIgnoreASCIICase in Source/web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 void CheckHeaderFails(const char* headerField) 194 void CheckHeaderFails(const char* headerField)
195 { 195 {
196 CheckHeaderFails(headerField, "foo"); 196 CheckHeaderFails(headerField, "foo");
197 } 197 }
198 198
199 void CheckHeaderFails(const char* headerField, const char* headerValue) 199 void CheckHeaderFails(const char* headerField, const char* headerValue)
200 { 200 {
201 WebURLRequest request; 201 WebURLRequest request;
202 request.setURL(toKURL("http://www.test.com/success.html")); 202 request.setURL(toKURL("http://www.test.com/success.html"));
203 if (equalIgnoringCase(WebString::fromUTF8(headerField), "referer")) 203 if (equalIgnoringASCIICase(WebString::fromUTF8(headerField), "referer"))
204 request.setHTTPReferrer(WebString::fromUTF8(headerValue), WebReferre rPolicyDefault); 204 request.setHTTPReferrer(WebString::fromUTF8(headerValue), WebReferre rPolicyDefault);
205 else 205 else
206 request.setHTTPHeaderField(WebString::fromUTF8(headerField), WebStri ng::fromUTF8(headerValue)); 206 request.setHTTPHeaderField(WebString::fromUTF8(headerField), WebStri ng::fromUTF8(headerValue));
207 WebURLLoaderOptions options; 207 WebURLLoaderOptions options;
208 options.untrustedHTTP = true; 208 options.untrustedHTTP = true;
209 CheckFails(request, options); 209 CheckFails(request, options);
210 } 210 }
211 211
212 void CheckFails(const WebURLRequest& request, WebURLLoaderOptions options = WebURLLoaderOptions()) 212 void CheckFails(const WebURLRequest& request, WebURLLoaderOptions options = WebURLLoaderOptions())
213 { 213 {
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 m_expectedLoader->loadAsynchronously(request, this); 680 m_expectedLoader->loadAsynchronously(request, this);
681 serveRequests(); 681 serveRequests();
682 EXPECT_TRUE(m_didReceiveResponse); 682 EXPECT_TRUE(m_didReceiveResponse);
683 EXPECT_TRUE(m_didReceiveData); 683 EXPECT_TRUE(m_didReceiveData);
684 EXPECT_TRUE(m_didFinishLoading); 684 EXPECT_TRUE(m_didFinishLoading);
685 685
686 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); 686 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty());
687 } 687 }
688 688
689 } // namespace blink 689 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebAXObject.cpp » ('j') | third_party/WebKit/Source/web/WebAXObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698