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

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

Issue 4974001: base: Get rid of 'using' declaration of StringAppendF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years, 1 month 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"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(&times, "%.2f,", timings[i].InMillisecondsF()); 110 base::StringAppendF(&times, "%.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
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
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