aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2018-09-24 12:11:04 +0000
committerPavel Labath <pavel@labath.sk>2018-09-24 12:11:04 +0000
commit27104981ad4a94b433e227c9af0c4a8cfad58261 (patch)
tree62d6481774551b6ab00b262cfbf5dea425d31d18 /clang/lib/CodeGen/CodeGenModule.cpp
parentd986ede313227a5f473f83c8ba52130255955514 (diff)
downloadllvm-27104981ad4a94b433e227c9af0c4a8cfad58261.zip
llvm-27104981ad4a94b433e227c9af0c4a8cfad58261.tar.gz
llvm-27104981ad4a94b433e227c9af0c4a8cfad58261.tar.bz2
Add NativeProcessProtocol unit tests
Summary: NativeProcessProtocol is an abstract class, but it still contains a significant amount of code. Some of that code is tested via tests of specific derived classes, but these tests don't run everywhere, as they are OS and arch-specific. They are also relatively high-level, which means some functionalities (particularly the failure cases) are hard/impossible to test. In this approach, I replace the abstract methods with mocks, which allows me to inject failures into the lowest levels of breakpoint setting code and test the class behavior in this situation. Reviewers: zturner, teemperor Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D52152 llvm-svn: 342875
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions