diff options
Diffstat (limited to 'src/mongo/s/mock_shard_resolver.h')
-rw-r--r-- | src/mongo/s/mock_shard_resolver.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/mongo/s/mock_shard_resolver.h b/src/mongo/s/mock_shard_resolver.h index a37c6cfe905..23e676e5836 100644 --- a/src/mongo/s/mock_shard_resolver.h +++ b/src/mongo/s/mock_shard_resolver.h @@ -37,19 +37,16 @@ namespace mongo { - class MockShardResolver : public ShardResolver { - public: - - virtual ~MockShardResolver() { - } - - Status chooseWriteHost( const std::string& shardName, ConnectionString* shardHost ) const { - std::string errMsg; - *shardHost = ConnectionString::parse( std::string( "$" ) + shardName + ":12345", errMsg ); - ASSERT_EQUALS( errMsg, "" ); - return Status::OK(); - } - - }; - -} // namespace mongo +class MockShardResolver : public ShardResolver { +public: + virtual ~MockShardResolver() {} + + Status chooseWriteHost(const std::string& shardName, ConnectionString* shardHost) const { + std::string errMsg; + *shardHost = ConnectionString::parse(std::string("$") + shardName + ":12345", errMsg); + ASSERT_EQUALS(errMsg, ""); + return Status::OK(); + } +}; + +} // namespace mongo |