OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 const std::string& package) override; | 38 const std::string& package) override; |
39 Status ClearAppData(const std::string& device_serial, | 39 Status ClearAppData(const std::string& device_serial, |
40 const std::string& package) override; | 40 const std::string& package) override; |
41 Status SetDebugApp(const std::string& device_serial, | 41 Status SetDebugApp(const std::string& device_serial, |
42 const std::string& package) override; | 42 const std::string& package) override; |
43 Status Launch(const std::string& device_serial, | 43 Status Launch(const std::string& device_serial, |
44 const std::string& package, | 44 const std::string& package, |
45 const std::string& activity) override; | 45 const std::string& activity) override; |
46 Status ForceStop(const std::string& device_serial, | 46 Status ForceStop(const std::string& device_serial, |
47 const std::string& package) override; | 47 const std::string& package) override; |
| 48 Status GetDevtoolsRemoteSocket(const std::string& device_serial, |
| 49 const std::string& process_name, |
| 50 std::string* device_socket) override; |
48 Status GetPidByName(const std::string& device_serial, | 51 Status GetPidByName(const std::string& device_serial, |
49 const std::string& process_name, | 52 const std::string& process_name, |
50 int* pid) override; | 53 int* pid) override; |
51 | 54 |
52 private: | 55 private: |
53 Status ExecuteCommand(const std::string& command, | 56 Status ExecuteCommand(const std::string& command, |
54 std::string* response); | 57 std::string* response); |
55 Status ExecuteHostCommand(const std::string& device_serial, | 58 Status ExecuteHostCommand(const std::string& device_serial, |
56 const std::string& host_command, | 59 const std::string& host_command, |
57 std::string* response); | 60 std::string* response); |
58 Status ExecuteHostShellCommand(const std::string& device_serial, | 61 Status ExecuteHostShellCommand(const std::string& device_serial, |
59 const std::string& shell_command, | 62 const std::string& shell_command, |
60 std::string* response); | 63 std::string* response); |
61 | 64 |
62 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 65 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
63 | 66 |
64 int port_; | 67 int port_; |
65 }; | 68 }; |
66 | 69 |
67 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ | 70 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_ADB_IMPL_H_ |
OLD | NEW |