summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/socktests.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 00:22:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 10:56:02 -0400
commit9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch)
tree3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/dbtests/socktests.cpp
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/dbtests/socktests.cpp')
-rw-r--r--src/mongo/dbtests/socktests.cpp49
1 files changed, 24 insertions, 25 deletions
diff --git a/src/mongo/dbtests/socktests.cpp b/src/mongo/dbtests/socktests.cpp
index a4563d47ed8..baa633e7e3c 100644
--- a/src/mongo/dbtests/socktests.cpp
+++ b/src/mongo/dbtests/socktests.cpp
@@ -37,28 +37,27 @@
namespace SockTests {
- class HostByName {
- public:
- void run() {
- ASSERT_EQUALS( "127.0.0.1", hostbyname( "localhost" ) );
- ASSERT_EQUALS( "127.0.0.1", hostbyname( "127.0.0.1" ) );
- // ASSERT_EQUALS( "::1", hostbyname( "::1" ) ); // IPv6 disabled at runtime by default.
-
- HostAndPort h("asdfasdfasdf_no_such_host");
- // this fails uncomment when fixed.
- ASSERT(!mongo::repl::isSelf(h));
- }
- };
-
- class All : public Suite {
- public:
- All() : Suite( "sock" ) {}
- void setupTests() {
- add< HostByName >();
- }
- };
-
- SuiteInstance<All> myall;
-
-} // namespace SockTests
-
+class HostByName {
+public:
+ void run() {
+ ASSERT_EQUALS("127.0.0.1", hostbyname("localhost"));
+ ASSERT_EQUALS("127.0.0.1", hostbyname("127.0.0.1"));
+ // ASSERT_EQUALS( "::1", hostbyname( "::1" ) ); // IPv6 disabled at runtime by default.
+
+ HostAndPort h("asdfasdfasdf_no_such_host");
+ // this fails uncomment when fixed.
+ ASSERT(!mongo::repl::isSelf(h));
+ }
+};
+
+class All : public Suite {
+public:
+ All() : Suite("sock") {}
+ void setupTests() {
+ add<HostByName>();
+ }
+};
+
+SuiteInstance<All> myall;
+
+} // namespace SockTests