Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/test/startup/shutdown_test.cc

Issue 3137040: GTTF: Extract performance-testing-specific parts of UITestBase to UIPerfTest.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/startup/feature_startup_test.cc ('k') | chrome/test/startup/startup_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/time.h" 12 #include "base/time.h"
13 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
14 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/env_vars.h" 16 #include "chrome/common/env_vars.h"
17 #include "chrome/test/ui/ui_test.h" 17 #include "chrome/test/ui/ui_perf_test.h"
18 #include "chrome/test/ui_test_utils.h" 18 #include "chrome/test/ui_test_utils.h"
19 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
20 20
21 using base::TimeDelta; 21 using base::TimeDelta;
22 22
23 namespace { 23 namespace {
24 24
25 class ShutdownTest : public UITest { 25 class ShutdownTest : public UIPerfTest {
26 public: 26 public:
27 ShutdownTest() { 27 ShutdownTest() {
28 show_window_ = true; 28 show_window_ = true;
29 } 29 }
30 void SetUp() {} 30 void SetUp() {}
31 void TearDown() {} 31 void TearDown() {}
32 32
33 enum TestSize { 33 enum TestSize {
34 SIMPLE, // Runs with no command line arguments (loads about:blank). 34 SIMPLE, // Runs with no command line arguments (loads about:blank).
35 TWENTY_TABS, // Opens 5 copies of 4 different test pages. 35 TWENTY_TABS, // Opens 5 copies of 4 different test pages.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #else 155 #else
156 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding 156 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding
157 #endif 157 #endif
158 158
159 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { 159 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) {
160 RunShutdownTest("shutdown", "twentytabs-session-ending", 160 RunShutdownTest("shutdown", "twentytabs-session-ending",
161 true, /* important */ TWENTY_TABS, UITest::SESSION_ENDING); 161 true, /* important */ TWENTY_TABS, UITest::SESSION_ENDING);
162 } 162 }
163 163
164 } // namespace 164 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/startup/feature_startup_test.cc ('k') | chrome/test/startup/startup_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698