| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/perftimer.h" | 7 #include "base/perftimer.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 UITest::TearDown(); | 153 UITest::TearDown(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 PrintTimings("script_start", scriptstart_times, false /* important */); | 156 PrintTimings("script_start", scriptstart_times, false /* important */); |
| 157 PrintTimings("domcontent_loaded", domcontentloaded_times, | 157 PrintTimings("domcontent_loaded", domcontentloaded_times, |
| 158 false /* important */); | 158 false /* important */); |
| 159 PrintTimings("onload", onload_times, false /* important */); | 159 PrintTimings("onload", onload_times, false /* important */); |
| 160 } | 160 } |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 TEST_F(NewTabUIStartupTest, PerfRefCold) { | 163 // FLAKY: http://crbug.com/69940 |
| 164 TEST_F(NewTabUIStartupTest, FLAKY_PerfRefCold) { |
| 164 UseReferenceBuild(); | 165 UseReferenceBuild(); |
| 165 RunStartupTest("tab_cold_ref", false /* cold */, true /* important */, | 166 RunStartupTest("tab_cold_ref", false /* cold */, true /* important */, |
| 166 ProxyLauncher::DEFAULT_THEME); | 167 ProxyLauncher::DEFAULT_THEME); |
| 167 } | 168 } |
| 168 | 169 |
| 169 TEST_F(NewTabUIStartupTest, PerfCold) { | 170 // FLAKY: http://crbug.com/69940 |
| 171 TEST_F(NewTabUIStartupTest, FLAKY_PerfCold) { |
| 170 RunStartupTest("tab_cold", false /* cold */, true /* important */, | 172 RunStartupTest("tab_cold", false /* cold */, true /* important */, |
| 171 ProxyLauncher::DEFAULT_THEME); | 173 ProxyLauncher::DEFAULT_THEME); |
| 172 } | 174 } |
| 173 | 175 |
| 174 TEST_F(NewTabUIStartupTest, PerfRefWarm) { | 176 // FLAKY: http://crbug.com/69940 |
| 177 TEST_F(NewTabUIStartupTest, FLAKY_PerfRefWarm) { |
| 175 UseReferenceBuild(); | 178 UseReferenceBuild(); |
| 176 RunStartupTest("tab_warm_ref", true /* warm */, true /* not important */, | 179 RunStartupTest("tab_warm_ref", true /* warm */, true /* not important */, |
| 177 ProxyLauncher::DEFAULT_THEME); | 180 ProxyLauncher::DEFAULT_THEME); |
| 178 } | 181 } |
| 179 | 182 |
| 180 TEST_F(NewTabUIStartupTest, PerfWarm) { | 183 // FLAKY: http://crbug.com/69940 |
| 184 TEST_F(NewTabUIStartupTest, FLAKY_PerfWarm) { |
| 181 RunStartupTest("tab_warm", true /* warm */, true /* not important */, | 185 RunStartupTest("tab_warm", true /* warm */, true /* not important */, |
| 182 ProxyLauncher::DEFAULT_THEME); | 186 ProxyLauncher::DEFAULT_THEME); |
| 183 } | 187 } |
| 184 | 188 |
| 185 TEST_F(NewTabUIStartupTest, ComplexThemeCold) { | 189 // FLAKY: http://crbug.com/69940 |
| 190 TEST_F(NewTabUIStartupTest, FLAKY_ComplexThemeCold) { |
| 186 RunStartupTest("tab_complex_theme_cold", false /* cold */, | 191 RunStartupTest("tab_complex_theme_cold", false /* cold */, |
| 187 false /* not important */, | 192 false /* not important */, |
| 188 ProxyLauncher::COMPLEX_THEME); | 193 ProxyLauncher::COMPLEX_THEME); |
| 189 } | 194 } |
| 190 | 195 |
| 191 TEST_F(NewTabUIStartupTest, NewTabTimingTestsCold) { | 196 // FLAKY: http://crbug.com/69940 |
| 197 TEST_F(NewTabUIStartupTest, FLAKY_NewTabTimingTestsCold) { |
| 192 RunNewTabTimingTest(); | 198 RunNewTabTimingTest(); |
| 193 } | 199 } |
| 194 | 200 |
| 195 #if defined(OS_LINUX) | 201 #if defined(OS_LINUX) |
| 196 TEST_F(NewTabUIStartupTest, GtkThemeCold) { | 202 TEST_F(NewTabUIStartupTest, GtkThemeCold) { |
| 197 RunStartupTest("tab_gtk_theme_cold", false /* cold */, | 203 RunStartupTest("tab_gtk_theme_cold", false /* cold */, |
| 198 false /* not important */, | 204 false /* not important */, |
| 199 ProxyLauncher::NATIVE_THEME); | 205 ProxyLauncher::NATIVE_THEME); |
| 200 } | 206 } |
| 201 | 207 |
| 202 TEST_F(NewTabUIStartupTest, NativeFrameCold) { | 208 TEST_F(NewTabUIStartupTest, NativeFrameCold) { |
| 203 RunStartupTest("tab_custom_frame_cold", false /* cold */, | 209 RunStartupTest("tab_custom_frame_cold", false /* cold */, |
| 204 false /* not important */, | 210 false /* not important */, |
| 205 ProxyLauncher::CUSTOM_FRAME); | 211 ProxyLauncher::CUSTOM_FRAME); |
| 206 } | 212 } |
| 207 | 213 |
| 208 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { | 214 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { |
| 209 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, | 215 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, |
| 210 false /* not important */, | 216 false /* not important */, |
| 211 ProxyLauncher::CUSTOM_FRAME_NATIVE_THEME); | 217 ProxyLauncher::CUSTOM_FRAME_NATIVE_THEME); |
| 212 } | 218 } |
| 213 #endif | 219 #endif |
| 214 | 220 |
| 215 } // namespace | 221 } // namespace |
| OLD | NEW |