<div dir="ltr">Aha, I see that now. What do you think about creating a test-only module that both unit tests can depend on? The llvm folder-globbing means we would have to put it in a subfolder (unittests/Utility/lib ?), which makes is somewhat annoying, but I still think that's better than having the test code in the main module.</div><div class="gmail_extra"><br><div class="gmail_quote">On 20 March 2017 at 13:04, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The reason was because two different tests from two different unittest executables need it, but we have no good way to share code across unittests like this.  Open to suggestions though<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 20, 2017 at 4:02 AM Pavel Labath via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">labath added inline comments.<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
================<br class="m_-5660249965042317437gmail_msg">
Comment at: lldb/include/lldb/Utility/<wbr>TildeExpressionResolver.h:62<br class="m_-5660249965042317437gmail_msg">
+<br class="m_-5660249965042317437gmail_msg">
+class MockTildeExpressionResolver : public TildeExpressionResolver {<br class="m_-5660249965042317437gmail_msg">
+  llvm::StringRef CurrentUser;<br class="m_-5660249965042317437gmail_msg">
----------------<br class="m_-5660249965042317437gmail_msg">
I find it very strange to see the Mock object in a regular header file (and I also don't see a reason why we would need that). Could we get rid of this? (perhaps by declaring it in a test-only header file if necessary)<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
<a href="https://reviews.llvm.org/D31129" rel="noreferrer" class="m_-5660249965042317437gmail_msg" target="_blank">https://reviews.llvm.org/<wbr>D31129</a><br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
<br class="m_-5660249965042317437gmail_msg">
</blockquote></div>
</div></div></blockquote></div><br></div>