Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Side by Side Diff: chrome/test/chromedriver/chrome/device_manager.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc ('k') | chrome/test/perf/perf_ui_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698