Skip to content

Commit

Permalink
Remove testing::Environment leftover (#2471)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon authored Oct 7, 2024
1 parent 7eb683f commit 21824c1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/gtest/avif_fuzztest_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,28 +248,6 @@ size_t GetNumSamples(size_t num_frames, size_t width, size_t height,
(num_luma_samples + num_chroma_samples + num_alpha_samples);
}

//------------------------------------------------------------------------------
// Environment setup

namespace {
class Environment : public ::testing::Environment {
public:
Environment(const char* name, const char* value)
: name_(name), value_(value) {}
void SetUp() override {
#ifdef _WIN32
_putenv_s(name_, value_); // Defined in stdlib.h.
#else
setenv(name_, value_, /*overwrite=*/1);
#endif
}

private:
const char* name_;
const char* value_;
};
} // namespace

//------------------------------------------------------------------------------

std::vector<std::string> GetSeedDataDirs() {
Expand Down

0 comments on commit 21824c1

Please sign in to comment.