Add missing override and remove redundant virtual in folly
[folly.git] / folly / io / test / CompressionTest.cpp
index 8fc0ad0045e7f12e22e90437ccb490d228d9da8e..314eba5ec745112e6e20ea82e263c35d709ea9c7 100644 (file)
@@ -133,7 +133,7 @@ TEST(CompressionTestNeedsUncompressedLength, Simple) {
 class CompressionTest
     : public testing::TestWithParam<std::tr1::tuple<int, CodecType>> {
   protected:
-   void SetUp() {
+   void SetUp() override {
      auto tup = GetParam();
      uncompressedLength_ = uint64_t(1) << std::tr1::get<0>(tup);
      codec_ = getCodec(std::tr1::get<1>(tup));
@@ -185,7 +185,7 @@ INSTANTIATE_TEST_CASE_P(
 class CompressionVarintTest
     : public testing::TestWithParam<std::tr1::tuple<int, CodecType>> {
  protected:
-  void SetUp() {
+  void SetUp() override {
     auto tup = GetParam();
     uncompressedLength_ = uint64_t(1) << std::tr1::get<0>(tup);
     codec_ = getCodec(std::tr1::get<1>(tup));
@@ -237,9 +237,7 @@ INSTANTIATE_TEST_CASE_P(
 
 class CompressionCorruptionTest : public testing::TestWithParam<CodecType> {
  protected:
-  void SetUp() {
-    codec_ = getCodec(GetParam());
-  }
+  void SetUp() override { codec_ = getCodec(GetParam()); }
 
   void runSimpleTest(const DataHolder& dh);