[clangd] Set up machinery for gtests of ClangdLSPServer.
authorSam McCall <sam.mccall@gmail.com>
Thu, 9 Apr 2020 00:02:29 +0000 (02:02 +0200)
committerSam McCall <sam.mccall@gmail.com>
Fri, 10 Apr 2020 00:50:57 +0000 (02:50 +0200)
commit1229245df7c7323fa916054bf20edc01b3606dd2
tree5204f876a6553dace79c42916689cf7eedef92f4
parent5625e6ab3788a788662f48dc7f5119defb43f08d
[clangd] Set up machinery for gtests of ClangdLSPServer.

Summary:
This is going to be needed to test e.g. diagnostics regeneration on
didSave where files changed on disk. Coordinating such changes is too
hard in lit tests.

Reviewers: kadircet

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77766
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp [new file with mode: 0644]
clang-tools-extra/clangd/unittests/LSPClient.cpp [new file with mode: 0644]
clang-tools-extra/clangd/unittests/LSPClient.h [new file with mode: 0644]