summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sanity_uitest.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 22:00:38 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 22:00:38 +0000
commit95edc39cdd3c55e2d62f818a830a86b209018137 (patch)
tree4b71be27dfa412a1b9aec01c61f91c09ab16f49a /chrome/browser/sanity_uitest.cc
parent8b081042290a48ce3c6b0a41071643175d17ae40 (diff)
downloadchromium_src-95edc39cdd3c55e2d62f818a830a86b209018137.zip
chromium_src-95edc39cdd3c55e2d62f818a830a86b209018137.tar.gz
chromium_src-95edc39cdd3c55e2d62f818a830a86b209018137.tar.bz2
Remove some wstrings used in ui_test.cc.
This removes all switch-related wstring APIs from ui_test.cc, and fixes all the callers. Review URL: http://codereview.chromium.org/3066026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sanity_uitest.cc')
-rw-r--r--chrome/browser/sanity_uitest.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/sanity_uitest.cc b/chrome/browser/sanity_uitest.cc
index 29fde79..83f978a 100644
--- a/chrome/browser/sanity_uitest.cc
+++ b/chrome/browser/sanity_uitest.cc
@@ -11,14 +11,14 @@
#include "base/file_path.h"
#include "base/platform_thread.h"
#include "chrome/common/chrome_switches.h"
+#include "net/base/net_util.h"
class GoogleTest : public UITest {
protected:
GoogleTest() : UITest() {
- FilePath test_file(test_data_directory_);
- test_file = test_file.AppendASCII("google");
- test_file = test_file.AppendASCII("google.html");
- homepage_ = test_file.ToWStringHack();
+ FilePath test_file =
+ test_data_directory_.AppendASCII("google").AppendASCII("google.html");
+ homepage_ = GURL(net::FilePathToFileURL(test_file)).spec();
}
};
@@ -34,9 +34,8 @@ TEST_F(GoogleTest, Crash) {
class ColumnLayout : public UITest {
protected:
ColumnLayout() : UITest() {
- FilePath test_file(test_data_directory_);
- test_file = test_file.AppendASCII("columns.html");
- homepage_ = test_file.ToWStringHack();
+ FilePath test_file = test_data_directory_.AppendASCII("columns.html");
+ homepage_ = GURL(net::FilePathToFileURL(test_file)).spec();
}
};