| 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" |
| 11 #include "base/sys_info.h" | 11 #include "base/sys_info.h" |
| 12 #include "base/test/test_file_util.h" | 12 #include "base/test/test_file_util.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/env_vars.h" | 18 #include "chrome/common/env_vars.h" |
| 19 #include "chrome/test/ui/ui_test.h" | 19 #include "chrome/test/ui/ui_perf_test.h" |
| 20 #include "chrome/test/ui_test_utils.h" | 20 #include "chrome/test/ui_test_utils.h" |
| 21 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
| 22 | 22 |
| 23 using base::TimeDelta; | 23 using base::TimeDelta; |
| 24 using base::TimeTicks; | 24 using base::TimeTicks; |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 class StartupTest : public UITest { | 28 class StartupTest : public UIPerfTest { |
| 29 public: | 29 public: |
| 30 StartupTest() { | 30 StartupTest() { |
| 31 show_window_ = true; | 31 show_window_ = true; |
| 32 } | 32 } |
| 33 void SetUp() {} | 33 void SetUp() {} |
| 34 void TearDown() {} | 34 void TearDown() {} |
| 35 | 35 |
| 36 enum TestColdness { | 36 enum TestColdness { |
| 37 WARM, | 37 WARM, |
| 38 COLD | 38 COLD |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 UITest::CUSTOM_FRAME, 0, 0); | 396 UITest::CUSTOM_FRAME, 0, 0); |
| 397 } | 397 } |
| 398 | 398 |
| 399 TEST_F(StartupTest, PerfNativeFrameGtkTheme) { | 399 TEST_F(StartupTest, PerfNativeFrameGtkTheme) { |
| 400 RunStartupTest("warm", "custom-frame-gtk-theme", WARM, NOT_IMPORTANT, | 400 RunStartupTest("warm", "custom-frame-gtk-theme", WARM, NOT_IMPORTANT, |
| 401 UITest::CUSTOM_FRAME_NATIVE_THEME, 0, 0); | 401 UITest::CUSTOM_FRAME_NATIVE_THEME, 0, 0); |
| 402 } | 402 } |
| 403 #endif | 403 #endif |
| 404 | 404 |
| 405 } // namespace | 405 } // namespace |
| OLD | NEW |