OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 std::string times; | 114 std::string times; |
115 for (int i = 0; i < numCycles; ++i) | 115 for (int i = 0; i < numCycles; ++i) |
116 base::StringAppendF(×, "%.2f,", timings[i].InMillisecondsF()); | 116 base::StringAppendF(×, "%.2f,", timings[i].InMillisecondsF()); |
117 perf_test::PrintResultList(graph, "", trace, times, "ms", important); | 117 perf_test::PrintResultList(graph, "", trace, times, "ms", important); |
118 } | 118 } |
119 }; | 119 }; |
120 | 120 |
121 TEST_F(ShutdownTest, SimpleWindowClose) { | 121 TEST_F(ShutdownTest, DISABLED_SimpleWindowClose) { |
122 RunShutdownTest("shutdown", "simple-window-close", | 122 RunShutdownTest("shutdown", "simple-window-close", |
123 true, /* important */ SIMPLE, ProxyLauncher::WINDOW_CLOSE); | 123 true, /* important */ SIMPLE, ProxyLauncher::WINDOW_CLOSE); |
124 } | 124 } |
125 | 125 |
126 TEST_F(ShutdownTest, SimpleUserQuit) { | 126 TEST_F(ShutdownTest, SimpleUserQuit) { |
127 RunShutdownTest("shutdown", "simple-user-quit", | 127 RunShutdownTest("shutdown", "simple-user-quit", |
128 true, /* important */ SIMPLE, ProxyLauncher::USER_QUIT); | 128 true, /* important */ SIMPLE, ProxyLauncher::USER_QUIT); |
129 } | 129 } |
130 | 130 |
131 TEST_F(ShutdownTest, SimpleSessionEnding) { | 131 TEST_F(ShutdownTest, SimpleSessionEnding) { |
(...skipping 28 matching lines...) Expand all Loading... |
160 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding | 160 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding |
161 #endif | 161 #endif |
162 | 162 |
163 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { | 163 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { |
164 RunShutdownTest("shutdown", "twentytabs-session-ending", | 164 RunShutdownTest("shutdown", "twentytabs-session-ending", |
165 true, /* important */ TWENTY_TABS, | 165 true, /* important */ TWENTY_TABS, |
166 ProxyLauncher::SESSION_ENDING); | 166 ProxyLauncher::SESSION_ENDING); |
167 } | 167 } |
168 | 168 |
169 } // namespace | 169 } // namespace |
OLD | NEW |