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

Side by Side Diff: chrome/test/startup/feature_startup_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/automation/automation_proxy_uitest.cc ('k') | chrome/test/startup/shutdown_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/perftimer.h" 7 #include "base/perftimer.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
(...skipping 17 matching lines...) Expand all
28 28
29 void SetUp() {} 29 void SetUp() {}
30 void TearDown() {} 30 void TearDown() {}
31 31
32 static const int kNumCycles = 5; 32 static const int kNumCycles = 5;
33 33
34 void PrintTimings(const char* label, TimeDelta timings[kNumCycles], 34 void PrintTimings(const char* label, TimeDelta timings[kNumCycles],
35 bool important) { 35 bool important) {
36 std::string times; 36 std::string times;
37 for (int i = 0; i < kNumCycles; ++i) 37 for (int i = 0; i < kNumCycles; ++i)
38 StringAppendF(&times, "%.2f,", timings[i].InMillisecondsF()); 38 base::StringAppendF(&times, "%.2f,", timings[i].InMillisecondsF());
39 PrintResultList("new_tab", "", label, times, "ms", important); 39 PrintResultList("new_tab", "", label, times, "ms", important);
40 } 40 }
41 41
42 void InitProfile(UITest::ProfileType profile_type) { 42 void InitProfile(UITest::ProfileType profile_type) {
43 profile_type_ = profile_type; 43 profile_type_ = profile_type;
44 44
45 // Install the location of the test profile file. 45 // Install the location of the test profile file.
46 set_template_user_data(UITest::ComputeTypicalUserDataSource( 46 set_template_user_data(UITest::ComputeTypicalUserDataSource(
47 profile_type)); 47 profile_type));
48 48
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) { 208 TEST_F(NewTabUIStartupTest, NativeFrameGtkThemeCold) {
209 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */, 209 RunStartupTest("tab_custom_frame_gtk_theme_cold", false /* cold */,
210 false /* not important */, 210 false /* not important */,
211 UITest::CUSTOM_FRAME_NATIVE_THEME); 211 UITest::CUSTOM_FRAME_NATIVE_THEME);
212 } 212 }
213 #endif 213 #endif
214 214
215 } // namespace 215 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy_uitest.cc ('k') | chrome/test/startup/shutdown_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698