summaryrefslogtreecommitdiffstats
path: root/chrome/test/url_fetch_test
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 15:42:00 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 15:42:00 +0000
commit7024d3eea1d8328883736f5cd3cbef480aa0e740 (patch)
tree5fc40e7da24d79306321037359bce7bd97bcf36b /chrome/test/url_fetch_test
parente9ff5e31b28b6ee684ceaf47afe4f483163f6d1d (diff)
downloadchromium_src-7024d3eea1d8328883736f5cd3cbef480aa0e740.zip
chromium_src-7024d3eea1d8328883736f5cd3cbef480aa0e740.tar.gz
chromium_src-7024d3eea1d8328883736f5cd3cbef480aa0e740.tar.bz2
Remove wstring from RVH's run Javascript command.
BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6312154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/url_fetch_test')
-rw-r--r--chrome/test/url_fetch_test/url_fetch_test.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/test/url_fetch_test/url_fetch_test.cc b/chrome/test/url_fetch_test/url_fetch_test.cc
index 5f1607c..9ff033b 100644
--- a/chrome/test/url_fetch_test/url_fetch_test.cc
+++ b/chrome/test/url_fetch_test/url_fetch_test.cc
@@ -85,11 +85,12 @@ class UrlFetchTest : public UITest {
std::string script = StringPrintf(
"window.domAutomationController.send(%s);", var_to_fetch);
- std::wstring value;
- bool success = tab->ExecuteAndExtractString(L"", ASCIIToWide(script),
+ string16 value;
+ bool success = tab->ExecuteAndExtractString(string16(),
+ ASCIIToUTF16(script),
&value);
ASSERT_TRUE(success);
- result->javascript_variable = WideToUTF8(value);
+ result->javascript_variable = UTF16ToUTF8(value);
}
}
};