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

Side by Side Diff: net/base/net_util_unittest.cc

Issue 11471041: Move DecodeFilenameValue and DecodeExt value into http_content_disposition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move non-net code out of net namespace. Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « net/base/net_util.cc ('k') | net/http/http_content_disposition.cc » ('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/base/net_util.h" 5 #include "net/base/net_util.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 }, 1172 },
1173 { // C-D specified filename disappears. Failover to final filename. 1173 { // C-D specified filename disappears. Failover to final filename.
1174 "http://www.google.com/test.html", 1174 "http://www.google.com/test.html",
1175 "attachment; filename=\"..\"", 1175 "attachment; filename=\"..\"",
1176 "", 1176 "",
1177 "", 1177 "",
1178 "", 1178 "",
1179 L"default", 1179 L"default",
1180 L"default" 1180 L"default"
1181 }, 1181 },
1182 // Below is a small subset of cases taken from GetFileNameFromCD test above. 1182 // Below is a small subset of cases taken from HttpContentDisposition tests.
1183 { 1183 {
1184 "http://www.google.com/", 1184 "http://www.google.com/",
1185 "attachment; filename=\"%EC%98%88%EC%88%A0%20" 1185 "attachment; filename=\"%EC%98%88%EC%88%A0%20"
1186 "%EC%98%88%EC%88%A0.jpg\"", 1186 "%EC%98%88%EC%88%A0.jpg\"",
1187 "", 1187 "",
1188 "", 1188 "",
1189 "", 1189 "",
1190 L"", 1190 L"",
1191 L"\uc608\uc220 \uc608\uc220.jpg" 1191 L"\uc608\uc220 \uc608\uc220.jpg"
1192 }, 1192 },
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 if (it->address[i] != 0) { 3264 if (it->address[i] != 0) {
3265 all_zeroes = false; 3265 all_zeroes = false;
3266 break; 3266 break;
3267 } 3267 }
3268 } 3268 }
3269 EXPECT_FALSE(all_zeroes); 3269 EXPECT_FALSE(all_zeroes);
3270 } 3270 }
3271 } 3271 }
3272 3272
3273 } // namespace net 3273 } // namespace net
OLDNEW
« no previous file with comments | « net/base/net_util.cc ('k') | net/http/http_content_disposition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698