diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 21:15:34 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 21:15:34 +0000 |
commit | dee7c0509d0e98d1210725aad2ce6e5153780592 (patch) | |
tree | 2408eb938674cde03bffb69350171980222d1584 /chrome_frame | |
parent | f756abf74be7ce47d482f9760eacb608c9f0e121 (diff) | |
download | chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.zip chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.tar.gz chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.tar.bz2 |
Remove GetSwitchValue() from chrome/* where easy.
Review URL: http://codereview.chromium.org/3057033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/net/process_singleton_subclass.cc | 5 | ||||
-rw-r--r-- | chrome_frame/test/reliability/page_load_test.cc | 20 | ||||
-rw-r--r-- | chrome_frame/test/reliability/run_all_unittests.cc | 2 |
3 files changed, 16 insertions, 11 deletions
diff --git a/chrome_frame/test/net/process_singleton_subclass.cc b/chrome_frame/test/net/process_singleton_subclass.cc index 2046e0b..89ddeb9 100644 --- a/chrome_frame/test/net/process_singleton_subclass.cc +++ b/chrome_frame/test/net/process_singleton_subclass.cc @@ -100,8 +100,9 @@ LRESULT ProcessSingletonSubclass::OnCopyData(HWND hwnd, HWND from_hwnd, std::wstring cmd_line(begin, static_cast<size_t>(end - begin)); CommandLine parsed_command_line = CommandLine::FromString(cmd_line); - std::string channel_id(WideToASCII(parsed_command_line.GetSwitchValue( - switches::kAutomationClientChannelID))); + std::string channel_id = + parsed_command_line.GetSwitchValueASCII( + switches::kAutomationClientChannelID)); EXPECT_FALSE(channel_id.empty()); delegate_->OnConnectAutomationProviderToChannel(channel_id); diff --git a/chrome_frame/test/reliability/page_load_test.cc b/chrome_frame/test/reliability/page_load_test.cc index f784bcf..61268fc 100644 --- a/chrome_frame/test/reliability/page_load_test.cc +++ b/chrome_frame/test/reliability/page_load_test.cc @@ -562,15 +562,17 @@ void SetPageRange(const CommandLine& parsed_command_line) { if (parsed_command_line.HasSwitch(kStartIndexSwitch)) { ASSERT_TRUE( - base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue( - kStartIndexSwitch)), &g_start_index)); + base::StringToInt(parsed_command_line.GetSwitchValue( + kStartIndexSwitch), + &g_start_index)); ASSERT_GT(g_start_index, 0); } if (parsed_command_line.HasSwitch(kEndIndexSwitch)) { ASSERT_TRUE( - base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue( - kEndIndexSwitch)), &g_end_index)); + base::StringToInt(parsed_command_line.GetSwitchValue( + kEndIndexSwitch), + &g_end_index)); ASSERT_GT(g_end_index, 0); } @@ -581,8 +583,9 @@ void SetPageRange(const CommandLine& parsed_command_line) { if (parsed_command_line.HasSwitch(kIterationSwitch)) { ASSERT_TRUE( - base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue( - kIterationSwitch)), &g_iterations)); + base::StringToInt(parsed_command_line.GetSwitchValue( + kIterationSwitch), + &g_iterations)); ASSERT_GT(g_iterations, 0); } @@ -597,8 +600,9 @@ void SetPageRange(const CommandLine& parsed_command_line) { if (parsed_command_line.HasSwitch(kTimeoutSwitch)) { ASSERT_TRUE( - base::StringToInt(WideToUTF16(parsed_command_line.GetSwitchValue( - kTimeoutSwitch)), &g_timeout_ms)); + base::StringToInt(parsed_command_line.GetSwitchValue( + kTimeoutSwitch), + &g_timeout_ms)); ASSERT_GT(g_timeout_ms, 0); } diff --git a/chrome_frame/test/reliability/run_all_unittests.cc b/chrome_frame/test/reliability/run_all_unittests.cc index 3b2604d..d153d68 100644 --- a/chrome_frame/test/reliability/run_all_unittests.cc +++ b/chrome_frame/test/reliability/run_all_unittests.cc @@ -29,7 +29,7 @@ int main(int argc, char **argv) { int result = -1; if (cmd_line->HasSwitch(kRegisterDllFlag)) { - std::wstring dll_path = cmd_line->GetSwitchValue(kRegisterDllFlag); + std::wstring dll_path = cmd_line->GetSwitchValueNative(kRegisterDllFlag); // Run() must be called within the scope of the ScopedChromeFrameRegistrar // to ensure that the correct DLL remains registered during the tests. |