| Index: chrome/test/perf/feature_startup_test.cc
|
| diff --git a/chrome/test/perf/feature_startup_test.cc b/chrome/test/perf/feature_startup_test.cc
|
| index 0caaa44c6d3da35570558277548d34552017c4ae..6d21d14eab78e085530f89c27cb02b8614b3f986 100644
|
| --- a/chrome/test/perf/feature_startup_test.cc
|
| +++ b/chrome/test/perf/feature_startup_test.cc
|
| @@ -42,19 +42,18 @@ class NewTabUIStartupTest : public UIPerfTest {
|
| "new_tab", std::string(), label, times, "ms", important);
|
| }
|
|
|
| - void InitProfile(UITestBase::ProfileType profile_type) {
|
| + void InitProfile(perf_test::ProfileType profile_type) {
|
| profile_type_ = profile_type;
|
|
|
| // Install the location of the test profile file.
|
| - set_template_user_data(UITest::ComputeTypicalUserDataSource(
|
| - profile_type));
|
| + set_template_user_data(GetPathForProfileType(profile_type));
|
| }
|
|
|
| // Run the test, by bringing up a browser and timing the new tab startup.
|
| // |want_warm| is true if we should output warm-disk timings, false if
|
| // we should report cold timings.
|
| void RunStartupTest(const char* label, bool want_warm, bool important,
|
| - UITestBase::ProfileType profile_type) {
|
| + perf_test::ProfileType profile_type) {
|
| InitProfile(profile_type);
|
|
|
| TimeDelta timings[kNumCycles];
|
| @@ -102,7 +101,7 @@ class NewTabUIStartupTest : public UIPerfTest {
|
| }
|
|
|
| void RunNewTabTimingTest() {
|
| - InitProfile(UITestBase::DEFAULT_THEME);
|
| + InitProfile(perf_test::DEFAULT_THEME);
|
|
|
| TimeDelta scriptstart_times[kNumCycles];
|
| TimeDelta domcontentloaded_times[kNumCycles];
|
| @@ -157,39 +156,43 @@ class NewTabUIStartupTest : public UIPerfTest {
|
| false /* important */);
|
| PrintTimings("onload", onload_times, false /* important */);
|
| }
|
| +
|
| + private:
|
| + // Are we using a profile with a complex theme?
|
| + perf_test::ProfileType profile_type_;
|
| };
|
|
|
| // FLAKY: http://crbug.com/69940
|
| TEST_F(NewTabUIStartupTest, DISABLED_PerfRefCold) {
|
| UseReferenceBuild();
|
| RunStartupTest("tab_cold_ref", false /* cold */, true /* important */,
|
| - UITestBase::DEFAULT_THEME);
|
| + perf_test::DEFAULT_THEME);
|
| }
|
|
|
| // FLAKY: http://crbug.com/69940
|
| TEST_F(NewTabUIStartupTest, DISABLED_PerfCold) {
|
| RunStartupTest("tab_cold", false /* cold */, true /* important */,
|
| - UITestBase::DEFAULT_THEME);
|
| + perf_test::DEFAULT_THEME);
|
| }
|
|
|
| // FLAKY: http://crbug.com/69940
|
| TEST_F(NewTabUIStartupTest, DISABLED_PerfRefWarm) {
|
| UseReferenceBuild();
|
| RunStartupTest("tab_warm_ref", true /* warm */, true /* not important */,
|
| - UITestBase::DEFAULT_THEME);
|
| + perf_test::DEFAULT_THEME);
|
| }
|
|
|
| // FLAKY: http://crbug.com/69940
|
| TEST_F(NewTabUIStartupTest, DISABLED_PerfWarm) {
|
| RunStartupTest("tab_warm", true /* warm */, true /* not important */,
|
| - UITestBase::DEFAULT_THEME);
|
| + perf_test::DEFAULT_THEME);
|
| }
|
|
|
| // FLAKY: http://crbug.com/69940
|
| TEST_F(NewTabUIStartupTest, DISABLED_ComplexThemeCold) {
|
| RunStartupTest("tab_complex_theme_cold", false /* cold */,
|
| false /* not important */,
|
| - UITestBase::COMPLEX_THEME);
|
| + perf_test::COMPLEX_THEME);
|
| }
|
|
|
| // FLAKY: http://crbug.com/69940
|
|
|