| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/environment.h" | 5 #include "base/environment.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/platform_thread.h" | 8 #include "base/platform_thread.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 TEST_F(StartupTest, PerfFewTabs) { | 291 TEST_F(StartupTest, PerfFewTabs) { |
| 292 RunPerfTestWithManyTabs("few_tabs", "cmdline", 5, 2, false); | 292 RunPerfTestWithManyTabs("few_tabs", "cmdline", 5, 2, false); |
| 293 } | 293 } |
| 294 | 294 |
| 295 TEST_F(StartupTest, PerfFewTabsReference) { | 295 TEST_F(StartupTest, PerfFewTabsReference) { |
| 296 UseReferenceBuild(); | 296 UseReferenceBuild(); |
| 297 RunPerfTestWithManyTabs("few_tabs", "cmdline-ref", 5, 2, false); | 297 RunPerfTestWithManyTabs("few_tabs", "cmdline-ref", 5, 2, false); |
| 298 } | 298 } |
| 299 | 299 |
| 300 TEST_F(StartupTest, PerfRestoreFewTabs) { | 300 // http://crbug.com/52858 |
| 301 #if defined(OS_MACOSX) |
| 302 #define MAYBE_PerfRestoreFewTabs FLAKY_PerfRestoreFewTabs |
| 303 #else |
| 304 #define MAYBE_PerfRestoreFewTabs PerfRestoreFewTabs |
| 305 #endif |
| 306 TEST_F(StartupTest, MAYBE_PerfRestoreFewTabs) { |
| 301 RunPerfTestWithManyTabs("few_tabs", "restore", 5, 2, true); | 307 RunPerfTestWithManyTabs("few_tabs", "restore", 5, 2, true); |
| 302 } | 308 } |
| 303 | 309 |
| 304 TEST_F(StartupTest, PerfRestoreFewTabsReference) { | 310 TEST_F(StartupTest, PerfRestoreFewTabsReference) { |
| 305 UseReferenceBuild(); | 311 UseReferenceBuild(); |
| 306 RunPerfTestWithManyTabs("few_tabs", "restore-ref", 5, 2, true); | 312 RunPerfTestWithManyTabs("few_tabs", "restore-ref", 5, 2, true); |
| 307 } | 313 } |
| 308 | 314 |
| 315 #if defined(OS_MACOSX) |
| 309 // http://crbug.com/46609 | 316 // http://crbug.com/46609 |
| 310 #if defined(OS_MACOSX) | |
| 311 #define MAYBE_PerfSeveralTabsReference FLAKY_PerfSeveralTabsReference | 317 #define MAYBE_PerfSeveralTabsReference FLAKY_PerfSeveralTabsReference |
| 312 #define MAYBE_PerfSeveralTabs FLAKY_PerfSeveralTabs | 318 #define MAYBE_PerfSeveralTabs FLAKY_PerfSeveralTabs |
| 319 // http://crbug.com/52858 |
| 320 #define MAYBE_PerfRestoreSeveralTabs FLAKY_PerfRestoreSeveralTabs |
| 321 #define MAYBE_PerfExtensionContentScript50 FLAKY_PerfExtensionContentScript50 |
| 313 #else | 322 #else |
| 314 #define MAYBE_PerfSeveralTabsReference PerfSeveralTabsReference | 323 #define MAYBE_PerfSeveralTabsReference PerfSeveralTabsReference |
| 315 #define MAYBE_PerfSeveralTabs PerfSeveralTabs | 324 #define MAYBE_PerfSeveralTabs PerfSeveralTabs |
| 325 #define MAYBE_PerfRestoreSeveralTabs PerfRestoreSeveralTabs |
| 326 #define MAYBE_PerfExtensionContentScript50 PerfExtensionContentScript50 |
| 316 #endif | 327 #endif |
| 317 | 328 |
| 318 TEST_F(StartupTest, MAYBE_PerfSeveralTabs) { | 329 TEST_F(StartupTest, MAYBE_PerfSeveralTabs) { |
| 319 RunPerfTestWithManyTabs("several_tabs", "cmdline", 10, 4, false); | 330 RunPerfTestWithManyTabs("several_tabs", "cmdline", 10, 4, false); |
| 320 } | 331 } |
| 321 | 332 |
| 322 TEST_F(StartupTest, MAYBE_PerfSeveralTabsReference) { | 333 TEST_F(StartupTest, MAYBE_PerfSeveralTabsReference) { |
| 323 UseReferenceBuild(); | 334 UseReferenceBuild(); |
| 324 RunPerfTestWithManyTabs("several_tabs", "cmdline-ref", 10, 4, false); | 335 RunPerfTestWithManyTabs("several_tabs", "cmdline-ref", 10, 4, false); |
| 325 } | 336 } |
| 326 | 337 |
| 327 TEST_F(StartupTest, PerfRestoreSeveralTabs) { | 338 TEST_F(StartupTest, MAYBE_PerfRestoreSeveralTabs) { |
| 328 RunPerfTestWithManyTabs("several_tabs", "restore", 10, 4, true); | 339 RunPerfTestWithManyTabs("several_tabs", "restore", 10, 4, true); |
| 329 } | 340 } |
| 330 | 341 |
| 331 TEST_F(StartupTest, PerfRestoreSeveralTabsReference) { | 342 TEST_F(StartupTest, PerfRestoreSeveralTabsReference) { |
| 332 UseReferenceBuild(); | 343 UseReferenceBuild(); |
| 333 RunPerfTestWithManyTabs("several_tabs", "restore-ref", 10, 4, true); | 344 RunPerfTestWithManyTabs("several_tabs", "restore-ref", 10, 4, true); |
| 334 } | 345 } |
| 335 | 346 |
| 336 TEST_F(StartupTest, PerfExtensionEmpty) { | 347 TEST_F(StartupTest, PerfExtensionEmpty) { |
| 337 SetUpWithFileURL(); | 348 SetUpWithFileURL(); |
| 338 SetUpWithExtensionsProfile("empty"); | 349 SetUpWithExtensionsProfile("empty"); |
| 339 RunStartupTest("warm", "extension_empty", WARM, NOT_IMPORTANT, | 350 RunStartupTest("warm", "extension_empty", WARM, NOT_IMPORTANT, |
| 340 UITest::DEFAULT_THEME, 1, 0); | 351 UITest::DEFAULT_THEME, 1, 0); |
| 341 } | 352 } |
| 342 | 353 |
| 343 TEST_F(StartupTest, PerfExtensionContentScript1) { | 354 TEST_F(StartupTest, PerfExtensionContentScript1) { |
| 344 SetUpWithFileURL(); | 355 SetUpWithFileURL(); |
| 345 SetUpWithExtensionsProfile("content_scripts1"); | 356 SetUpWithExtensionsProfile("content_scripts1"); |
| 346 RunStartupTest("warm", "extension_content_scripts1", WARM, NOT_IMPORTANT, | 357 RunStartupTest("warm", "extension_content_scripts1", WARM, NOT_IMPORTANT, |
| 347 UITest::DEFAULT_THEME, 1, 0); | 358 UITest::DEFAULT_THEME, 1, 0); |
| 348 } | 359 } |
| 349 | 360 |
| 350 TEST_F(StartupTest, PerfExtensionContentScript50) { | 361 TEST_F(StartupTest, MAYBE_PerfExtensionContentScript50) { |
| 351 SetUpWithFileURL(); | 362 SetUpWithFileURL(); |
| 352 SetUpWithExtensionsProfile("content_scripts50"); | 363 SetUpWithExtensionsProfile("content_scripts50"); |
| 353 RunStartupTest("warm", "extension_content_scripts50", WARM, NOT_IMPORTANT, | 364 RunStartupTest("warm", "extension_content_scripts50", WARM, NOT_IMPORTANT, |
| 354 UITest::DEFAULT_THEME, 1, 0); | 365 UITest::DEFAULT_THEME, 1, 0); |
| 355 } | 366 } |
| 356 | 367 |
| 357 #if defined(OS_WIN) | 368 #if defined(OS_WIN) |
| 358 // TODO(port): Enable gears tests on linux/mac once gears is working. | 369 // TODO(port): Enable gears tests on linux/mac once gears is working. |
| 359 TEST_F(StartupTest, PerfGears) { | 370 TEST_F(StartupTest, PerfGears) { |
| 360 SetUpWithFileURL(); | 371 SetUpWithFileURL(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 385 UITest::CUSTOM_FRAME, 0, 0); | 396 UITest::CUSTOM_FRAME, 0, 0); |
| 386 } | 397 } |
| 387 | 398 |
| 388 TEST_F(StartupTest, PerfNativeFrameGtkTheme) { | 399 TEST_F(StartupTest, PerfNativeFrameGtkTheme) { |
| 389 RunStartupTest("warm", "custom-frame-gtk-theme", WARM, NOT_IMPORTANT, | 400 RunStartupTest("warm", "custom-frame-gtk-theme", WARM, NOT_IMPORTANT, |
| 390 UITest::CUSTOM_FRAME_NATIVE_THEME, 0, 0); | 401 UITest::CUSTOM_FRAME_NATIVE_THEME, 0, 0); |
| 391 } | 402 } |
| 392 #endif | 403 #endif |
| 393 | 404 |
| 394 } // namespace | 405 } // namespace |
| OLD | NEW |