summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sanity_uitest.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-02 00:56:57 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-02 00:56:57 +0000
commit4b68e0d50c4a69b91a384b698a96f6a51ca7241f (patch)
treea11dc1b6baf8d2e1d1c3d8b7930fb9ca0cec46eb /chrome/browser/sanity_uitest.cc
parent82d10b14f9b4150ce1e154629dec9dcddadcf272 (diff)
downloadchromium_src-4b68e0d50c4a69b91a384b698a96f6a51ca7241f.zip
chromium_src-4b68e0d50c4a69b91a384b698a96f6a51ca7241f.tar.gz
chromium_src-4b68e0d50c4a69b91a384b698a96f6a51ca7241f.tar.bz2
Yet more deprecation of the wstring version of PathService::Get() for UI tests.
Review URL: http://codereview.chromium.org/99298 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sanity_uitest.cc')
-rw-r--r--chrome/browser/sanity_uitest.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/sanity_uitest.cc b/chrome/browser/sanity_uitest.cc
index 77cc14d..2eaded0 100644
--- a/chrome/browser/sanity_uitest.cc
+++ b/chrome/browser/sanity_uitest.cc
@@ -8,16 +8,16 @@
#include "chrome/test/ui/ui_test.h"
#include "base/basictypes.h"
-#include "base/file_util.h"
+#include "base/file_path.h"
#include "base/platform_thread.h"
class GoogleTest : public UITest {
protected:
GoogleTest() : UITest() {
- std::wstring test_file = test_data_directory_;
- file_util::AppendToPath(&test_file, L"google");
- file_util::AppendToPath(&test_file, L"google.html");
- homepage_ = test_file;
+ FilePath test_file(test_data_directory_);
+ test_file = test_file.AppendASCII("google");
+ test_file = test_file.AppendASCII("google.html");
+ homepage_ = test_file.ToWStringHack();
}
};
@@ -33,9 +33,9 @@ TEST_F(GoogleTest, Crash) {
class ColumnLayout : public UITest {
protected:
ColumnLayout() : UITest() {
- std::wstring test_file = test_data_directory_;
- file_util::AppendToPath(&test_file, L"columns.html");
- homepage_ = test_file;
+ FilePath test_file(test_data_directory_);
+ test_file = test_file.AppendASCII("columns.html");
+ homepage_ = test_file.ToWStringHack();
}
};