| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/chromedriver/commands.h" | 5 #include "chrome/test/chromedriver/commands.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/environment.h" | 8 #include "base/environment.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/string_split.h" | |
| 11 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_split.h" |
| 13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/test/chromedriver/chrome.h" | 15 #include "chrome/test/chromedriver/chrome.h" |
| 16 #include "chrome/test/chromedriver/chrome_android_impl.h" | 16 #include "chrome/test/chromedriver/chrome_android_impl.h" |
| 17 #include "chrome/test/chromedriver/chrome_desktop_impl.h" | 17 #include "chrome/test/chromedriver/chrome_desktop_impl.h" |
| 18 #include "chrome/test/chromedriver/net/url_request_context_getter.h" | 18 #include "chrome/test/chromedriver/net/url_request_context_getter.h" |
| 19 #include "chrome/test/chromedriver/session.h" | 19 #include "chrome/test/chromedriver/session.h" |
| 20 #include "chrome/test/chromedriver/session_map.h" | 20 #include "chrome/test/chromedriver/session_map.h" |
| 21 #include "chrome/test/chromedriver/status.h" | 21 #include "chrome/test/chromedriver/status.h" |
| 22 #include "chrome/test/chromedriver/util.h" | 22 #include "chrome/test/chromedriver/util.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 std::string* out_session_id) { | 172 std::string* out_session_id) { |
| 173 std::vector<std::string> session_ids; | 173 std::vector<std::string> session_ids; |
| 174 session_map->GetKeys(&session_ids); | 174 session_map->GetKeys(&session_ids); |
| 175 for (size_t i = 0; i < session_ids.size(); ++i) { | 175 for (size_t i = 0; i < session_ids.size(); ++i) { |
| 176 scoped_ptr<base::Value> unused_value; | 176 scoped_ptr<base::Value> unused_value; |
| 177 std::string unused_session_id; | 177 std::string unused_session_id; |
| 178 quit_command.Run(params, session_ids[i], &unused_value, &unused_session_id); | 178 quit_command.Run(params, session_ids[i], &unused_value, &unused_session_id); |
| 179 } | 179 } |
| 180 return Status(kOk); | 180 return Status(kOk); |
| 181 } | 181 } |
| OLD | NEW |