aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2021-05-20 18:28:13 -0700
committerJosh Gao <jmgao@google.com>2021-07-02 10:20:32 -0700
commit6256d99b285baa672cec1d0eeff65c43b1412c35 (patch)
tree4694e08d39f89483da0e5f6b17a7200e5d87ccfb /adb.h
parent22f73e678c2b807595337bb595553cef456623d6 (diff)
downloadadb-6256d99b285baa672cec1d0eeff65c43b1412c35.tar.gz
Add test for ConnectionState to_string.
Test: treehugger Change-Id: I0d9fa8195075b8586348622ce6a68a71d024193e
Diffstat (limited to 'adb.h')
-rw-r--r--adb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb.h b/adb.h
index 437a207a..801da1d6 100644
--- a/adb.h
+++ b/adb.h
@@ -115,6 +115,8 @@ enum ConnectionState {
kCsRescue,
};
+std::string to_string(ConnectionState state);
+
inline bool ConnectionStateIsOnline(ConnectionState state) {
switch (state) {
case kCsBootloader:
@@ -201,8 +203,6 @@ void local_init(const std::string& addr);
bool local_connect(int port);
int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error);
-ConnectionState connection_state(atransport* t);
-
extern const char* adb_device_banner;
#define CHUNK_SIZE (64 * 1024)