summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Android/AdbClient.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-24 14:11:47 +0000
committerPavel Labath <labath@google.com>2016-11-24 14:11:47 +0000
commitce255ff26af9d7ca4fd7810724e60b0e8d05cd6f (patch)
treeb2fa25c23ab67e664540008f5ebbddb3bc6651ab /lldb/source/Plugins/Platform/Android/AdbClient.cpp
parent818dd516dae0f6f68da1e8ad5f1d3d468f50123c (diff)
downloadbcm5719-llvm-ce255ff26af9d7ca4fd7810724e60b0e8d05cd6f.tar.gz
bcm5719-llvm-ce255ff26af9d7ca4fd7810724e60b0e8d05cd6f.zip
Use more chrono in AdbClient
This refactors AdbClient interface in terms of std::chrono. llvm-svn: 287880
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/AdbClient.cpp')
-rw-r--r--lldb/source/Plugins/Platform/Android/AdbClient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Platform/Android/AdbClient.cpp b/lldb/source/Plugins/Platform/Android/AdbClient.cpp
index d9e27d94f74..05004406c04 100644
--- a/lldb/source/Plugins/Platform/Android/AdbClient.cpp
+++ b/lldb/source/Plugins/Platform/Android/AdbClient.cpp
@@ -383,10 +383,10 @@ Error AdbClient::internalShell(const char *command, milliseconds timeout,
return Error();
}
-Error AdbClient::Shell(const char *command, uint32_t timeout_ms,
+Error AdbClient::Shell(const char *command, milliseconds timeout,
std::string *output) {
std::vector<char> output_buffer;
- auto error = internalShell(command, milliseconds(timeout_ms), output_buffer);
+ auto error = internalShell(command, timeout, output_buffer);
if (error.Fail())
return error;
@@ -395,10 +395,10 @@ Error AdbClient::Shell(const char *command, uint32_t timeout_ms,
return error;
}
-Error AdbClient::ShellToFile(const char *command, uint32_t timeout_ms,
+Error AdbClient::ShellToFile(const char *command, milliseconds timeout,
const FileSpec &output_file_spec) {
std::vector<char> output_buffer;
- auto error = internalShell(command, milliseconds(timeout_ms), output_buffer);
+ auto error = internalShell(command, timeout, output_buffer);
if (error.Fail())
return error;
OpenPOWER on IntegriCloud