diff options
Diffstat (limited to 'snappy-test.h')
-rw-r--r-- | snappy-test.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/snappy-test.h b/snappy-test.h index b251e66..7b39a8c 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -126,10 +126,6 @@ extern "C" { namespace { -namespace File { - void Init() { } -} // namespace File - namespace file { int Defaults() { return 0; } @@ -162,9 +158,8 @@ namespace file { return DummyStatus(); } - DummyStatus SetContents(const std::string& filename, - const std::string& str, - int unused) { + inline DummyStatus SetContents( + const std::string& filename, const std::string& str, int unused) { FILE* fp = fopen(filename.c_str(), "wb"); if (fp == NULL) { perror(filename.c_str()); @@ -468,7 +463,7 @@ class ZLib { DECLARE_bool(run_microbenchmarks); -static void RunSpecifiedBenchmarks() { +static inline void RunSpecifiedBenchmarks() { if (!FLAGS_run_microbenchmarks) { return; } @@ -516,10 +511,6 @@ static inline int RUN_ALL_TESTS() { // For main(). namespace snappy { -static void CompressFile(const char* fname); -static void UncompressFile(const char* fname); -static void MeasureFile(const char* fname); - // Logging. #define LOG(level) LogMessage() @@ -591,10 +582,6 @@ class LogMessageVoidify { #define CHECK_GT(a, b) CRASH_UNLESS((a) > (b)) #define CHECK_OK(cond) (cond).CheckSuccess() -} // namespace - -using snappy::CompressFile; -using snappy::UncompressFile; -using snappy::MeasureFile; +} // namespace snappy #endif // THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_TEST_H_ |