OLD | NEW |
---|---|
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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 #else | 140 #else |
141 #define MAYBE_DOMCorePerf DOMCorePerf | 141 #define MAYBE_DOMCorePerf DOMCorePerf |
142 #endif | 142 #endif |
143 TEST_F(DromaeoTest, MAYBE_DOMCorePerf) { | 143 TEST_F(DromaeoTest, MAYBE_DOMCorePerf) { |
144 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | 144 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) |
145 return; | 145 return; |
146 | 146 |
147 RunTest("dom"); | 147 RunTest("dom"); |
148 } | 148 } |
149 | 149 |
150 TEST_F(DromaeoTest, DOMCoreAttrPerf) { | |
151 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
152 return; | |
153 | |
154 RunTest("dom-attr"); | |
155 } | |
156 | |
157 TEST_F(DromaeoTest, DOMCoreModifyPerf) { | |
158 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
159 return; | |
160 | |
161 RunTest("dom-modify"); | |
162 } | |
163 | |
164 TEST_F(DromaeoTest, DOMCoreQueryPerf) { | |
165 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
166 return; | |
167 | |
168 RunTest("dom-query"); | |
169 } | |
170 | |
171 TEST_F(DromaeoTest, DOMCoreTraversePerf) { | |
172 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
173 return; | |
174 | |
175 RunTest("dom-traverse"); | |
cmp
2012/08/28 16:58:32
i noticed you were able to split jslib further tha
| |
176 } | |
177 | |
150 TEST_F(DromaeoTest, JSLibPerf) { | 178 TEST_F(DromaeoTest, JSLibPerf) { |
151 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | 179 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) |
152 return; | 180 return; |
153 | 181 |
154 RunTest("jslib"); | 182 RunTest("jslib"); |
155 } | 183 } |
156 | 184 |
185 TEST_F(DromaeoTest, JSLibAttrJqueryPerf) { | |
186 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
187 return; | |
188 | |
189 RunTest("jslib-attr-jquery"); | |
190 } | |
191 | |
192 TEST_F(DromaeoTest, JSLibAttrPrototypePerf) { | |
193 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
194 return; | |
195 | |
196 RunTest("jslib-attr-prototype"); | |
197 } | |
198 | |
199 TEST_F(DromaeoTest, JSLibEventJqueryPerf) { | |
200 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
201 return; | |
202 | |
203 RunTest("jslib-event-jquery"); | |
204 } | |
205 | |
206 TEST_F(DromaeoTest, JSLibEventPrototypePerf) { | |
207 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
208 return; | |
209 | |
210 RunTest("jslib-event-prototype"); | |
211 } | |
212 | |
213 TEST_F(DromaeoTest, JSLibModifyJqueryPerf) { | |
214 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
215 return; | |
216 | |
217 RunTest("jslib-modify-jquery"); | |
218 } | |
219 | |
220 TEST_F(DromaeoTest, JSLibModifyPrototypePerf) { | |
221 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
222 return; | |
223 | |
224 RunTest("jslib-modify-prototype"); | |
225 } | |
226 | |
227 TEST_F(DromaeoTest, JSLibTraverseJqueryPerf) { | |
228 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
229 return; | |
230 | |
231 RunTest("jslib-traverse-jquery"); | |
232 } | |
233 | |
234 TEST_F(DromaeoTest, JSLibTraversePrototypePerf) { | |
235 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
236 return; | |
237 | |
238 RunTest("jslib-traverse-prototype"); | |
239 } | |
240 | |
241 TEST_F(DromaeoTest, JSLibStyleJqueryPerf) { | |
242 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
243 return; | |
244 | |
245 RunTest("jslib-style-jquery"); | |
246 } | |
247 | |
248 TEST_F(DromaeoTest, JSLibStylePrototypePerf) { | |
249 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
250 return; | |
251 | |
252 RunTest("jslib-style-prototype"); | |
253 } | |
254 | |
157 TEST_F(DromaeoReferenceTest, MAYBE_DOMCorePerf) { | 255 TEST_F(DromaeoReferenceTest, MAYBE_DOMCorePerf) { |
158 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | 256 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) |
159 return; | 257 return; |
160 | 258 |
161 RunTest("dom"); | 259 RunTest("dom"); |
162 } | 260 } |
163 | 261 |
262 TEST_F(DromaeoReferenceTest, DOMCoreAttrPerf) { | |
263 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
264 return; | |
265 | |
266 RunTest("dom-attr"); | |
267 } | |
268 | |
269 TEST_F(DromaeoReferenceTest, DOMCoreModifyPerf) { | |
270 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
271 return; | |
272 | |
273 RunTest("dom-modify"); | |
274 } | |
275 | |
276 TEST_F(DromaeoReferenceTest, DOMCoreQueryPerf) { | |
277 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
278 return; | |
279 | |
280 RunTest("dom-query"); | |
281 } | |
282 | |
283 TEST_F(DromaeoReferenceTest, DOMCoreTraversePerf) { | |
284 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
285 return; | |
286 | |
287 RunTest("dom-traverse"); | |
288 } | |
289 | |
164 TEST_F(DromaeoReferenceTest, JSLibPerf) { | 290 TEST_F(DromaeoReferenceTest, JSLibPerf) { |
165 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | 291 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) |
166 return; | 292 return; |
167 | 293 |
168 RunTest("jslib"); | 294 RunTest("jslib"); |
169 } | 295 } |
170 | 296 |
297 TEST_F(DromaeoReferenceTest, JSLibAttrJqueryPerf) { | |
298 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
299 return; | |
300 | |
301 RunTest("jslib-attr-jquery"); | |
302 } | |
303 | |
304 TEST_F(DromaeoReferenceTest, JSLibAttrPrototypePerf) { | |
305 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
306 return; | |
307 | |
308 RunTest("jslib-attr-prototype"); | |
309 } | |
310 | |
311 TEST_F(DromaeoReferenceTest, JSLibEventJqueryPerf) { | |
312 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
313 return; | |
314 | |
315 RunTest("jslib-event-jquery"); | |
316 } | |
317 | |
318 TEST_F(DromaeoReferenceTest, JSLibEventPrototypePerf) { | |
319 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
320 return; | |
321 | |
322 RunTest("jslib-event-prototype"); | |
323 } | |
324 | |
325 TEST_F(DromaeoReferenceTest, JSLibModifyJqueryPerf) { | |
326 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
327 return; | |
328 | |
329 RunTest("jslib-modify-jquery"); | |
330 } | |
331 | |
332 TEST_F(DromaeoReferenceTest, JSLibModifyPrototypePerf) { | |
333 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
334 return; | |
335 | |
336 RunTest("jslib-modify-prototype"); | |
337 } | |
338 | |
339 TEST_F(DromaeoReferenceTest, JSLibTraverseJqueryPerf) { | |
340 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
341 return; | |
342 | |
343 RunTest("jslib-traverse-jquery"); | |
344 } | |
345 | |
346 TEST_F(DromaeoReferenceTest, JSLibTraversePrototypePerf) { | |
347 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
darin (slow to review)
2012/08/28 21:04:26
perhaps you could fold this command line check int
sullivan
2012/09/04 15:43:41
Done.
| |
348 return; | |
349 | |
350 RunTest("jslib-traverse-prototype"); | |
351 } | |
352 | |
353 TEST_F(DromaeoReferenceTest, JSLibStyleJqueryPerf) { | |
354 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
355 return; | |
356 | |
357 RunTest("jslib-style-jquery"); | |
358 } | |
359 | |
360 TEST_F(DromaeoReferenceTest, JSLibStylePrototypePerf) { | |
361 if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunDromaeo)) | |
362 return; | |
363 | |
364 RunTest("jslib-style-prototype"); | |
365 } | |
366 | |
171 | 367 |
172 } // namespace | 368 } // namespace |
OLD | NEW |