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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/perf/rendering/throughput_tests.cc ('k') | chrome/test/perf/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) 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/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 clear_profile_ = false; 107 clear_profile_ = false;
108 // Clear template_user_data_ so we don't try to copy it over each time 108 // Clear template_user_data_ so we don't try to copy it over each time
109 // through. 109 // through.
110 set_template_user_data(base::FilePath()); 110 set_template_user_data(base::FilePath());
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(&times, "%.2f,", timings[i].InMillisecondsF()); 116 base::StringAppendF(&times, "%.2f,", timings[i].InMillisecondsF());
117 perf_test::PrintResultList(graph, "", trace, times, "ms", important); 117 perf_test::PrintResultList(
118 graph, std::string(), trace, times, "ms", important);
118 } 119 }
119 }; 120 };
120 121
121 TEST_F(ShutdownTest, DISABLED_SimpleWindowClose) { 122 TEST_F(ShutdownTest, DISABLED_SimpleWindowClose) {
122 RunShutdownTest("shutdown", "simple-window-close", 123 RunShutdownTest("shutdown", "simple-window-close",
123 true, /* important */ SIMPLE, ProxyLauncher::WINDOW_CLOSE); 124 true, /* important */ SIMPLE, ProxyLauncher::WINDOW_CLOSE);
124 } 125 }
125 126
126 TEST_F(ShutdownTest, SimpleUserQuit) { 127 TEST_F(ShutdownTest, SimpleUserQuit) {
127 RunShutdownTest("shutdown", "simple-user-quit", 128 RunShutdownTest("shutdown", "simple-user-quit",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding 161 #define MAYBE_TwentyTabsSessionEnding TwentyTabsSessionEnding
161 #endif 162 #endif
162 163
163 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) { 164 TEST_F(ShutdownTest, MAYBE_TwentyTabsSessionEnding) {
164 RunShutdownTest("shutdown", "twentytabs-session-ending", 165 RunShutdownTest("shutdown", "twentytabs-session-ending",
165 true, /* important */ TWENTY_TABS, 166 true, /* important */ TWENTY_TABS,
166 ProxyLauncher::SESSION_ENDING); 167 ProxyLauncher::SESSION_ENDING);
167 } 168 }
168 169
169 } // namespace 170 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/perf/rendering/throughput_tests.cc ('k') | chrome/test/perf/startup_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698