summaryrefslogtreecommitdiff
path: root/util/testutil.h
diff options
context:
space:
mode:
authorcostan <costan@google.com>2018-03-12 09:14:44 -0700
committerVictor Costan <pwnall@chromium.org>2018-03-12 09:24:48 -0700
commitaece2068d7375f987685b8b145288c5557f9ce50 (patch)
treee0a0f3b5d8c961572e8222344dbb64e43c1e217e /util/testutil.h
parentddab751002588fe58955357d68d12b062e038d0d (diff)
downloadleveldb-aece2068d7375f987685b8b145288c5557f9ce50.tar.gz
Remove extern from function declarations.
External linkage is the default for function declarations in C++. This also fixes ClangTidy errors generated by removing the "extern" keyword as described above. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=188730416
Diffstat (limited to 'util/testutil.h')
-rw-r--r--util/testutil.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/testutil.h b/util/testutil.h
index d7e4583..8726bf7 100644
--- a/util/testutil.h
+++ b/util/testutil.h
@@ -14,17 +14,17 @@ namespace test {
// Store in *dst a random string of length "len" and return a Slice that
// references the generated data.
-extern Slice RandomString(Random* rnd, int len, std::string* dst);
+Slice RandomString(Random* rnd, int len, std::string* dst);
// Return a random key with the specified length that may contain interesting
// characters (e.g. \x00, \xff, etc.).
-extern std::string RandomKey(Random* rnd, int len);
+std::string RandomKey(Random* rnd, int len);
// Store in *dst a string of length "len" that will compress to
// "N*compressed_fraction" bytes and return a Slice that references
// the generated data.
-extern Slice CompressibleString(Random* rnd, double compressed_fraction,
- size_t len, std::string* dst);
+Slice CompressibleString(Random* rnd, double compressed_fraction,
+ size_t len, std::string* dst);
// A wrapper that allows injection of errors.
class ErrorEnv : public EnvWrapper {