OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chrome/device_manager.h" | 5 #include "chrome/test/chromedriver/chrome/device_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 const std::string& device_serial, const std::string& shell_command, | 175 const std::string& device_serial, const std::string& shell_command, |
176 std::string* response) { | 176 std::string* response) { |
177 return ExecuteCommand( | 177 return ExecuteCommand( |
178 "host:transport:" + device_serial + "|shell:" + shell_command, | 178 "host:transport:" + device_serial + "|shell:" + shell_command, |
179 response); | 179 response); |
180 } | 180 } |
181 | 181 |
182 void DeviceManager::ExecuteCommandOnIOThread( | 182 void DeviceManager::ExecuteCommandOnIOThread( |
183 const std::string& command, std::string* response, bool* success, | 183 const std::string& command, std::string* response, bool* success, |
184 base::WaitableEvent* event) { | 184 base::WaitableEvent* event) { |
185 CHECK(MessageLoop::current()->IsType(MessageLoop::TYPE_IO)); | 185 CHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); |
186 AdbClientSocket::AdbQuery(kAdbPort, command, | 186 AdbClientSocket::AdbQuery(kAdbPort, command, |
187 base::Bind(&ReceiveAdbResponse, response, success, event)); | 187 base::Bind(&ReceiveAdbResponse, response, success, event)); |
188 } | 188 } |
OLD | NEW |