diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 05:54:10 +0000 |
commit | 5d39e314de21a384eaa226d4875b6a6e8e1bea17 (patch) | |
tree | ff3e9de865f592de344be6fa98fc96939b76a240 /chrome/test/automated_ui_tests | |
parent | abac839b4a359636d6168d34d94ac6d043b6550b (diff) | |
download | chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.zip chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.gz chromium_src-5d39e314de21a384eaa226d4875b6a6e8e1bea17.tar.bz2 |
Use GetSwitchValueASCII, so we don't use the deprecated versions.
Patch from Thiago Farina <thiago.farina@gmail.com>.
Review URL: http://codereview.chromium.org/498002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automated_ui_tests')
-rw-r--r-- | chrome/test/automated_ui_tests/automated_ui_tests.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/chrome/test/automated_ui_tests/automated_ui_tests.cc b/chrome/test/automated_ui_tests/automated_ui_tests.cc index ae7df5d..f8b912e 100644 --- a/chrome/test/automated_ui_tests/automated_ui_tests.cc +++ b/chrome/test/automated_ui_tests/automated_ui_tests.cc @@ -123,11 +123,11 @@ AutomatedUITest::AutomatedUITest() if (parsed_command_line.HasSwitch(kDebugModeSwitch)) debug_logging_enabled_ = true; if (parsed_command_line.HasSwitch(kWaitSwitch)) { - std::wstring str = parsed_command_line.GetSwitchValue(kWaitSwitch); + std::string str = parsed_command_line.GetSwitchValueASCII(kWaitSwitch); if (str.empty()) { post_action_delay_ = 1; } else { - post_action_delay_ = static_cast<int>(StringToInt64(WideToUTF16(str))); + post_action_delay_ = StringToInt(str); } } if (base::SysInfo::HasEnvVar(env_vars::kHeadless)) @@ -141,17 +141,15 @@ void AutomatedUITest::RunReproduction() { xml_writer_.StartWriting(); xml_writer_.StartElement("Report"); std::string action_string = - WideToASCII(parsed_command_line.GetSwitchValue(kReproSwitch)); + parsed_command_line.GetSwitchValueASCII(kReproSwitch); int64 num_reproductions = 1; if (parsed_command_line.HasSwitch(kReproRepeatSwitch)) { - std::wstring num_reproductions_string = - parsed_command_line.GetSwitchValue(kReproRepeatSwitch); - std::string test = WideToASCII(num_reproductions_string); - num_reproductions = StringToInt64(test); + num_reproductions = StringToInt64( + parsed_command_line.GetSwitchValueASCII(kReproRepeatSwitch)); } std::vector<std::string> actions; - SplitString(action_string, L',', &actions); + SplitString(action_string, ',', &actions); bool did_crash = false; bool command_complete = false; |