From bfc8bfc1647ac628ba1f240ba636c1a0f7a44336 Mon Sep 17 00:00:00 2001 From: Austen McRae Date: Thu, 19 Jul 2018 14:31:58 -0700 Subject: [PATCH] Fix SonarConnectionMock by overriding virtual method Summary: SonarConnection should have an `error` function; this stubs out the mock to have this, allowing creation for tests. Reviewed By: jknoxville Differential Revision: D8878130 fbshipit-source-id: 9e0f45dac4ba31ee650dfd46dcee51207cc7a9b4 --- xplat/SonarTestLib/SonarConnectionMock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xplat/SonarTestLib/SonarConnectionMock.h b/xplat/SonarTestLib/SonarConnectionMock.h index e70bef97f..815512b57 100644 --- a/xplat/SonarTestLib/SonarConnectionMock.h +++ b/xplat/SonarTestLib/SonarConnectionMock.h @@ -26,6 +26,9 @@ class SonarConnectionMock : public SonarConnection { receivers_[method] = receiver; } + void error(const std::string& message, const std::string& stacktrace) + override {} + std::map sent_; std::map receivers_; };