summaryrefslogtreecommitdiffstats
path: root/chrome/test/startup
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-12 00:06:31 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-12 00:06:31 +0000
commita5ca79bd123f0d20fea5c76d0bb36128bb925f3a (patch)
tree8d8ca7d214c4272072a889d544b01ac8220f49b4 /chrome/test/startup
parent0d52b23006174f37ba0337c170506b9580ccaf29 (diff)
downloadchromium_src-a5ca79bd123f0d20fea5c76d0bb36128bb925f3a.zip
chromium_src-a5ca79bd123f0d20fea5c76d0bb36128bb925f3a.tar.gz
chromium_src-a5ca79bd123f0d20fea5c76d0bb36128bb925f3a.tar.bz2
Add new tab startup test to the linux & mac build.
Review URL: http://codereview.chromium.org/113229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/startup')
-rw-r--r--chrome/test/startup/feature_startup_test.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/test/startup/feature_startup_test.cc b/chrome/test/startup/feature_startup_test.cc
index b1a22f4..2d86b4b 100644
--- a/chrome/test/startup/feature_startup_test.cc
+++ b/chrome/test/startup/feature_startup_test.cc
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <windows.h>
-
-#include "app/win_util.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/perftimer.h"
@@ -21,12 +18,12 @@ namespace {
// Returns the directory name where the "typical" user data is that we use for
// testing.
-std::wstring ComputeTypicalUserDataSource() {
- std::wstring source_history_file;
+FilePath ComputeTypicalUserDataSource() {
+ FilePath source_history_file;
EXPECT_TRUE(PathService::Get(chrome::DIR_TEST_DATA,
&source_history_file));
- file_util::AppendToPath(&source_history_file, L"profiles");
- file_util::AppendToPath(&source_history_file, L"typical_history");
+ source_history_file = source_history_file.AppendASCII("profiles")
+ .AppendASCII("typical_history");
return source_history_file;
}
@@ -54,7 +51,7 @@ class NewTabUIStartupTest : public UITest {
// we should report cold timings.
void RunStartupTest(const char* label, bool want_warm, bool important) {
// Install the location of the test profile file.
- set_template_user_data(ComputeTypicalUserDataSource());
+ set_template_user_data(ComputeTypicalUserDataSource().ToWStringHack());
TimeDelta timings[kNumCycles];
for (int i = 0; i < kNumCycles; ++i) {