summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/reliability/page_load_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/test/reliability/page_load_test.cc')
-rw-r--r--chrome_frame/test/reliability/page_load_test.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/chrome_frame/test/reliability/page_load_test.cc b/chrome_frame/test/reliability/page_load_test.cc
index 61268fc..f784bcf 100644
--- a/chrome_frame/test/reliability/page_load_test.cc
+++ b/chrome_frame/test/reliability/page_load_test.cc
@@ -562,17 +562,15 @@ void SetPageRange(const CommandLine& parsed_command_line) {
if (parsed_command_line.HasSwitch(kStartIndexSwitch)) {
ASSERT_TRUE(
- base::StringToInt(parsed_command_line.GetSwitchValue(
- kStartIndexSwitch),
- &g_start_index));
+ base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue(
+ kStartIndexSwitch)), &g_start_index));
ASSERT_GT(g_start_index, 0);
}
if (parsed_command_line.HasSwitch(kEndIndexSwitch)) {
ASSERT_TRUE(
- base::StringToInt(parsed_command_line.GetSwitchValue(
- kEndIndexSwitch),
- &g_end_index));
+ base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue(
+ kEndIndexSwitch)), &g_end_index));
ASSERT_GT(g_end_index, 0);
}
@@ -583,9 +581,8 @@ void SetPageRange(const CommandLine& parsed_command_line) {
if (parsed_command_line.HasSwitch(kIterationSwitch)) {
ASSERT_TRUE(
- base::StringToInt(parsed_command_line.GetSwitchValue(
- kIterationSwitch),
- &g_iterations));
+ base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue(
+ kIterationSwitch)), &g_iterations));
ASSERT_GT(g_iterations, 0);
}
@@ -600,9 +597,8 @@ void SetPageRange(const CommandLine& parsed_command_line) {
if (parsed_command_line.HasSwitch(kTimeoutSwitch)) {
ASSERT_TRUE(
- base::StringToInt(parsed_command_line.GetSwitchValue(
- kTimeoutSwitch),
- &g_timeout_ms));
+ base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue(
+ kTimeoutSwitch)), &g_timeout_ms));
ASSERT_GT(g_timeout_ms, 0);
}