OLD | NEW |
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 Loading... |
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(×, "%.2f,", timings[i].InMillisecondsF()); | 38 base::StringAppendF(×, "%.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 Loading... |
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 |
OLD | NEW |