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/gfx/rect.h" | 6 #include "base/gfx/rect.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/perftimer.h" | 8 #include "base/perftimer.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 PrintTimings("onload", onload_times, false /* important */); | 156 PrintTimings("onload", onload_times, false /* important */); |
157 } | 157 } |
158 }; | 158 }; |
159 | 159 |
160 // TODO(pamg): run these tests with a reference build? | 160 // TODO(pamg): run these tests with a reference build? |
161 TEST_F(NewTabUIStartupTest, PerfCold) { | 161 TEST_F(NewTabUIStartupTest, PerfCold) { |
162 RunStartupTest("tab_cold", false /* cold */, true /* important */, | 162 RunStartupTest("tab_cold", false /* cold */, true /* important */, |
163 UITest::DEFAULT_THEME); | 163 UITest::DEFAULT_THEME); |
164 } | 164 } |
165 | 165 |
166 TEST_F(NewTabUIStartupTest, DISABLED_PerfWarm) { | 166 TEST_F(NewTabUIStartupTest, PerfWarm) { |
167 RunStartupTest("tab_warm", true /* warm */, false /* not important */, | 167 RunStartupTest("tab_warm", true /* warm */, false /* not important */, |
168 UITest::DEFAULT_THEME); | 168 UITest::DEFAULT_THEME); |
169 } | 169 } |
170 | 170 |
171 TEST_F(NewTabUIStartupTest, ComplexThemeCold) { | 171 TEST_F(NewTabUIStartupTest, ComplexThemeCold) { |
172 RunStartupTest("tab_complex_theme_cold", false /* cold */, | 172 RunStartupTest("tab_complex_theme_cold", false /* cold */, |
173 false /* not important */, | 173 false /* not important */, |
174 UITest::COMPLEX_THEME); | 174 UITest::COMPLEX_THEME); |
175 } | 175 } |
176 | 176 |
(...skipping 15 matching lines...) Expand all Loading... |
192 } | 192 } |
193 | 193 |
194 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { | 194 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { |
195 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, | 195 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, |
196 false /* not important */, | 196 false /* not important */, |
197 UITest::CUSTOM_FRAME_NATIVE_THEME); | 197 UITest::CUSTOM_FRAME_NATIVE_THEME); |
198 } | 198 } |
199 #endif | 199 #endif |
200 | 200 |
201 } // namespace | 201 } // namespace |
OLD | NEW |