| 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" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // creating databases doesn't impact all the runs. | 100 // creating databases doesn't impact all the runs. |
| 101 clear_profile_ = false; | 101 clear_profile_ = false; |
| 102 // Clear template_user_data_ so we don't try to copy it over each time | 102 // Clear template_user_data_ so we don't try to copy it over each time |
| 103 // through. | 103 // through. |
| 104 set_template_user_data(FilePath()); | 104 set_template_user_data(FilePath()); |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 | 107 |
| 108 std::string times; | 108 std::string times; |
| 109 for (int i = 0; i < numCycles; ++i) | 109 for (int i = 0; i < numCycles; ++i) |
| 110 StringAppendF(×, "%.2f,", timings[i].InMillisecondsF()); | 110 base::StringAppendF(×, "%.2f,", timings[i].InMillisecondsF()); |
| 111 PrintResultList(graph, "", trace, times, "ms", important); | 111 PrintResultList(graph, "", trace, times, "ms", important); |
| 112 } | 112 } |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 TEST_F(ShutdownTest, SimpleWindowClose) { | 115 TEST_F(ShutdownTest, SimpleWindowClose) { |
| 116 RunShutdownTest("shutdown", "simple-window-close", | 116 RunShutdownTest("shutdown", "simple-window-close", |
| 117 true, /* important */ SIMPLE, UITest::WINDOW_CLOSE); | 117 true, /* important */ SIMPLE, UITest::WINDOW_CLOSE); |
| 118 } | 118 } |
| 119 | 119 |
| 120 TEST_F(ShutdownTest, SimpleUserQuit) { | 120 TEST_F(ShutdownTest, SimpleUserQuit) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 143 #else | 143 #else |
| 144 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding | 144 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { | 147 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { |
| 148 RunShutdownTest("shutdown", "twentytabs-session-ending", | 148 RunShutdownTest("shutdown", "twentytabs-session-ending", |
| 149 true, /* important */ TWENTY_TABS, UITest::SESSION_ENDING); | 149 true, /* important */ TWENTY_TABS, UITest::SESSION_ENDING); |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace | 152 } // namespace |
| OLD | NEW |