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

Side by Side Diff: sky/engine/wtf/text/StringOperatorsTest.cpp

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_N_WTF_STRING_COPIES(2, atomicString + "C string" + string + "C string "); 141 EXPECT_N_WTF_STRING_COPIES(2, atomicString + "C string" + string + "C string ");
142 EXPECT_N_WTF_STRING_COPIES(2, atomicString + ("C string" + string + "C strin g")); 142 EXPECT_N_WTF_STRING_COPIES(2, atomicString + ("C string" + string + "C strin g"));
143 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + "C string") + (string + "C str ing")); 143 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + "C string") + (string + "C str ing"));
144 144
145 EXPECT_N_WTF_STRING_COPIES(2, literal + atomicString + literal + string); 145 EXPECT_N_WTF_STRING_COPIES(2, literal + atomicString + literal + string);
146 EXPECT_N_WTF_STRING_COPIES(2, literal + (atomicString + literal + string)); 146 EXPECT_N_WTF_STRING_COPIES(2, literal + (atomicString + literal + string));
147 EXPECT_N_WTF_STRING_COPIES(2, (literal + atomicString) + (literal + string)) ; 147 EXPECT_N_WTF_STRING_COPIES(2, (literal + atomicString) + (literal + string)) ;
148 EXPECT_N_WTF_STRING_COPIES(2, atomicString + literal + string + literal); 148 EXPECT_N_WTF_STRING_COPIES(2, atomicString + literal + string + literal);
149 EXPECT_N_WTF_STRING_COPIES(2, atomicString + (literal + string + literal)); 149 EXPECT_N_WTF_STRING_COPIES(2, atomicString + (literal + string + literal));
150 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + literal) + (string + literal)) ; 150 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + literal) + (string + literal)) ;
151
152 #if COMPILER(MSVC)
153 EXPECT_N_WTF_STRING_COPIES(1, L"wide string" + string);
154 EXPECT_N_WTF_STRING_COPIES(1, string + L"wide string");
155 EXPECT_N_WTF_STRING_COPIES(1, L"wide string" + atomicString);
156 EXPECT_N_WTF_STRING_COPIES(1, atomicString + L"wide string");
157
158 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + string + L"wide string" + str ing);
159 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + (string + L"wide string" + st ring));
160 EXPECT_N_WTF_STRING_COPIES(2, (L"wide string" + string) + (L"wide string" + string));
161 EXPECT_N_WTF_STRING_COPIES(2, string + L"wide string" + string + L"wide stri ng");
162 EXPECT_N_WTF_STRING_COPIES(2, string + (L"wide string" + string + L"wide str ing"));
163 EXPECT_N_WTF_STRING_COPIES(2, (string + L"wide string") + (string + L"wide s tring"));
164
165 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + atomicString + L"wide string" + atomicString);
166 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + (atomicString + L"wide string " + atomicString));
167 EXPECT_N_WTF_STRING_COPIES(2, (L"wide string" + atomicString) + (L"wide stri ng" + atomicString));
168 EXPECT_N_WTF_STRING_COPIES(2, atomicString + L"wide string" + atomicString + L"wide string");
169 EXPECT_N_WTF_STRING_COPIES(2, atomicString + (L"wide string" + atomicString + L"wide string"));
170 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + L"wide string") + (atomicStrin g + L"wide string"));
171
172 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + string + L"wide string" + ato micString);
173 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + (string + L"wide string" + at omicString));
174 EXPECT_N_WTF_STRING_COPIES(2, (L"wide string" + string) + (L"wide string" + atomicString));
175 EXPECT_N_WTF_STRING_COPIES(2, string + L"wide string" + atomicString + L"wid e string");
176 EXPECT_N_WTF_STRING_COPIES(2, string + (L"wide string" + atomicString + L"wi de string"));
177 EXPECT_N_WTF_STRING_COPIES(2, (string + L"wide string") + (atomicString + L" wide string"));
178
179 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + atomicString + L"wide string" + string);
180 EXPECT_N_WTF_STRING_COPIES(2, L"wide string" + (atomicString + L"wide string " + string));
181 EXPECT_N_WTF_STRING_COPIES(2, (L"wide string" + atomicString) + (L"wide stri ng" + string));
182 EXPECT_N_WTF_STRING_COPIES(2, atomicString + L"wide string" + string + L"wid e string");
183 EXPECT_N_WTF_STRING_COPIES(2, atomicString + (L"wide string" + string + L"wi de string"));
184 EXPECT_N_WTF_STRING_COPIES(2, (atomicString + L"wide string") + (string + L" wide string"));
185 #endif
151 } 186 }
152 187
153 } // namespace 188 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698