llvm-project/lldb/unittests/Host
Pavel Labath 7e437f8f39 Remove some ProcFileReader occurences
Summary:
ProcFileReader is the cause of the dependency from Host to ProcessLinux
module. Since it's interface is also obsolete (ReadIntoDataBuffer is
trivially replaceable by llvm::MemoryBuffer functions and
ProcessLineByLine is trivially implementable with StringRefs), instead
of moving it around I'm planning to obliterate it. This is the first
step, where I remove a couple of occurences in linux/Host.cpp, and
modernize some code around that.

I have introduced linux/Support.h, which holds two utility functions
now, whose resposibility is to construct the appropriate proc file names
-- the only useful feature of ProcFileReader.

I add a couple of tests for these functions, and for
Host::GetProcessInfo. It's worth noting that these are the first
host-specific unit tests in lldb.

Reviewers: zturner, eugene

Subscribers: srhines, lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D30942

llvm-svn: 297843
2017-03-15 15:08:49 +00:00
..
linux Remove some ProcFileReader occurences 2017-03-15 15:08:49 +00:00
CMakeLists.txt Remove some ProcFileReader occurences 2017-03-15 15:08:49 +00:00
FileSpecTest.cpp FileSpec: Fix PrependPathComponent("/") 2017-01-16 10:07:02 +00:00
FileSystemTest.cpp Remove TimeValue usage from FileSpec.h 2016-11-01 16:11:14 +00:00
SocketAddressTest.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SocketTest.cpp [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00
SymbolsTest.cpp Fix unittest compilation on windows 2016-09-07 08:46:50 +00:00