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

Unified Diff: net/cookies/parsed_cookie_unittest.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cookies/cookie_util.cc ('k') | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/parsed_cookie_unittest.cc
diff --git a/net/cookies/parsed_cookie_unittest.cc b/net/cookies/parsed_cookie_unittest.cc
index 0f5715511a5811efcdcbe97962eb09fe155e2506..30d41eb4681d894bcc587a53ed44be952bb632dc 100644
--- a/net/cookies/parsed_cookie_unittest.cc
+++ b/net/cookies/parsed_cookie_unittest.cc
@@ -38,7 +38,7 @@ TEST(ParsedCookieTest, TestQuoted) {
// handle differently. I've tested Internet Explorer 6, Opera 9.6,
// Firefox 3, and Safari Windows 3.2.1. We originally tried to match
// Firefox closely, however we now match Internet Explorer and Safari.
- const char* values[] = {
+ const char* const values[] = {
// Trailing whitespace after a quoted value. The whitespace after
// the quote is stripped in all browsers.
"\"zzz \" ", "\"zzz \"",
@@ -471,14 +471,14 @@ TEST(ParsedCookieTest, InvalidNonAlphanumericChars) {
TEST(ParsedCookieTest, ValidNonAlphanumericChars) {
// Note that some of these words are pasted backwords thanks to poor vim bidi
// support. This should not affect the tests, however.
- const char* pc1_literal = "name=العربية";
- const char* pc2_literal = "name=普通話";
- const char* pc3_literal = "name=ภาษาไทย";
- const char* pc4_literal = "name=עִבְרִית";
- const char* pc5_literal = "العربية=value";
- const char* pc6_literal = "普通話=value";
- const char* pc7_literal = "ภาษาไทย=value";
- const char* pc8_literal = "עִבְרִית=value";
+ const char pc1_literal[] = "name=العربية";
+ const char pc2_literal[] = "name=普通話";
+ const char pc3_literal[] = "name=ภาษาไทย";
+ const char pc4_literal[] = "name=עִבְרִית";
+ const char pc5_literal[] = "العربية=value";
+ const char pc6_literal[] = "普通話=value";
+ const char pc7_literal[] = "ภาษาไทย=value";
+ const char pc8_literal[] = "עִבְרִית=value";
ParsedCookie pc1(pc1_literal);
ParsedCookie pc2(pc2_literal);
ParsedCookie pc3(pc3_literal);
« no previous file with comments | « net/cookies/cookie_util.cc ('k') | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698