| 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_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
| 11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/test/automation/browser_proxy.h" | 13 #include "chrome/test/automation/browser_proxy.h" |
| 14 #include "chrome/test/automation/window_proxy.h" | 14 #include "chrome/test/automation/window_proxy.h" |
| 15 #include "chrome/test/ui/ui_test.h" | 15 #include "chrome/test/ui/ui_perf_test.h" |
| 16 #include "gfx/rect.h" | 16 #include "gfx/rect.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 | 18 |
| 19 using base::TimeDelta; | 19 using base::TimeDelta; |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 class NewTabUIStartupTest : public UITest { | 23 class NewTabUIStartupTest : public UIPerfTest { |
| 24 public: | 24 public: |
| 25 NewTabUIStartupTest() { | 25 NewTabUIStartupTest() { |
| 26 show_window_ = true; | 26 show_window_ = true; |
| 27 } | 27 } |
| 28 | 28 |
| 29 void SetUp() {} | 29 void SetUp() {} |
| 30 void TearDown() {} | 30 void TearDown() {} |
| 31 | 31 |
| 32 static const int kNumCycles = 5; | 32 static const int kNumCycles = 5; |
| 33 | 33 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { | 208 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { |
| 209 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, | 209 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, |
| 210 false /* not important */, | 210 false /* not important */, |
| 211 UITest::CUSTOM_FRAME_NATIVE_THEME); | 211 UITest::CUSTOM_FRAME_NATIVE_THEME); |
| 212 } | 212 } |
| 213 #endif | 213 #endif |
| 214 | 214 |
| 215 } // namespace | 215 } // namespace |
| OLD | NEW |