summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_targeter_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/remote_command_targeter_mock.cpp')
-rw-r--r--src/mongo/client/remote_command_targeter_mock.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/mongo/client/remote_command_targeter_mock.cpp b/src/mongo/client/remote_command_targeter_mock.cpp
index b6f79cf1980..814352d24e0 100644
--- a/src/mongo/client/remote_command_targeter_mock.cpp
+++ b/src/mongo/client/remote_command_targeter_mock.cpp
@@ -35,26 +35,24 @@
namespace mongo {
- RemoteCommandTargeterMock::RemoteCommandTargeterMock()
- : _findHostReturnValue(Status(ErrorCodes::InternalError, "No return value set")) {
- }
+RemoteCommandTargeterMock::RemoteCommandTargeterMock()
+ : _findHostReturnValue(Status(ErrorCodes::InternalError, "No return value set")) {}
- RemoteCommandTargeterMock::~RemoteCommandTargeterMock() = default;
+RemoteCommandTargeterMock::~RemoteCommandTargeterMock() = default;
- RemoteCommandTargeterMock* RemoteCommandTargeterMock::get(RemoteCommandTargeter* targeter) {
- auto mock = dynamic_cast<RemoteCommandTargeterMock*>(targeter);
- invariant(mock);
+RemoteCommandTargeterMock* RemoteCommandTargeterMock::get(RemoteCommandTargeter* targeter) {
+ auto mock = dynamic_cast<RemoteCommandTargeterMock*>(targeter);
+ invariant(mock);
- return mock;
- }
+ return mock;
+}
- StatusWith<HostAndPort> RemoteCommandTargeterMock::findHost(
- const ReadPreferenceSetting& readPref) {
- return _findHostReturnValue;
- }
+StatusWith<HostAndPort> RemoteCommandTargeterMock::findHost(const ReadPreferenceSetting& readPref) {
+ return _findHostReturnValue;
+}
- void RemoteCommandTargeterMock::setFindHostReturnValue(StatusWith<HostAndPort> returnValue) {
- _findHostReturnValue = std::move(returnValue);
- }
+void RemoteCommandTargeterMock::setFindHostReturnValue(StatusWith<HostAndPort> returnValue) {
+ _findHostReturnValue = std::move(returnValue);
+}
-} // namespace mongo
+} // namespace mongo