diff options
author | Josh Gao <jmgao@google.com> | 2021-05-20 18:28:13 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2021-07-02 10:20:32 -0700 |
commit | 6256d99b285baa672cec1d0eeff65c43b1412c35 (patch) | |
tree | 4694e08d39f89483da0e5f6b17a7200e5d87ccfb /adb.h | |
parent | 22f73e678c2b807595337bb595553cef456623d6 (diff) | |
download | adb-6256d99b285baa672cec1d0eeff65c43b1412c35.tar.gz |
Add test for ConnectionState to_string.
Test: treehugger
Change-Id: I0d9fa8195075b8586348622ce6a68a71d024193e
Diffstat (limited to 'adb.h')
-rw-r--r-- | adb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |