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 <list> | 7 #include <list> |
8 | 8 |
9 #include "base/logging.h" // For CHECK macros. | 9 #include "base/logging.h" // For CHECK macros. |
10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/sys_info.h" | 11 #include "base/sys_info.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/test/chromedriver/capabilities.h" | 13 #include "chrome/test/chromedriver/capabilities.h" |
14 #include "chrome/test/chromedriver/chrome/chrome.h" | 14 #include "chrome/test/chromedriver/chrome/chrome.h" |
15 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" | 15 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" |
16 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" | 16 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" |
17 #include "chrome/test/chromedriver/chrome/device_manager.h" | 17 #include "chrome/test/chromedriver/chrome/device_manager.h" |
18 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" | 18 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
19 #include "chrome/test/chromedriver/chrome/status.h" | 19 #include "chrome/test/chromedriver/chrome/status.h" |
20 #include "chrome/test/chromedriver/chrome/version.h" | 20 #include "chrome/test/chromedriver/chrome/version.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 std::string* out_session_id) { | 165 std::string* out_session_id) { |
166 std::vector<std::string> session_ids; | 166 std::vector<std::string> session_ids; |
167 session_map->GetKeys(&session_ids); | 167 session_map->GetKeys(&session_ids); |
168 for (size_t i = 0; i < session_ids.size(); ++i) { | 168 for (size_t i = 0; i < session_ids.size(); ++i) { |
169 scoped_ptr<base::Value> unused_value; | 169 scoped_ptr<base::Value> unused_value; |
170 std::string unused_session_id; | 170 std::string unused_session_id; |
171 quit_command.Run(params, session_ids[i], &unused_value, &unused_session_id); | 171 quit_command.Run(params, session_ids[i], &unused_value, &unused_session_id); |
172 } | 172 } |
173 return Status(kOk); | 173 return Status(kOk); |
174 } | 174 } |
OLD | NEW |