Change an example to use 'override' rather than 'virtual'. Add missing headers for 'connect' and 'socket'.

This commit is contained in:
kosak 2015-01-08 02:35:11 +00:00
parent 102b50483a
commit c2101c2877
2 changed files with 4 additions and 2 deletions

View File

@ -359,8 +359,8 @@ GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
// //
// class FooTest : public testing::Test { // class FooTest : public testing::Test {
// protected: // protected:
// virtual void SetUp() { ... } // void SetUp() override { ... }
// virtual void TearDown() { ... } // void TearDown() override { ... }
// ... // ...
// }; // };
// //

View File

@ -128,6 +128,8 @@
#if GTEST_CAN_STREAM_RESULTS_ #if GTEST_CAN_STREAM_RESULTS_
# include <arpa/inet.h> // NOLINT # include <arpa/inet.h> // NOLINT
# include <netdb.h> // NOLINT # include <netdb.h> // NOLINT
# include <sys/socket.h> // NOLINT
# include <sys/types.h> // NOLINT
#endif #endif
// Indicates that this translation unit is part of Google Test's // Indicates that this translation unit is part of Google Test's