about summary refs log tree commit diff
path: root/absl/container/btree_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/container/btree_test.h')
-rw-r--r--absl/container/btree_test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/absl/container/btree_test.h b/absl/container/btree_test.h
index 218ba41dc2e9..624908072d59 100644
--- a/absl/container/btree_test.h
+++ b/absl/container/btree_test.h
@@ -25,6 +25,7 @@
 #include "absl/container/btree_map.h"
 #include "absl/container/btree_set.h"
 #include "absl/container/flat_hash_set.h"
+#include "absl/strings/cord.h"
 #include "absl/time/time.h"
 
 namespace absl {
@@ -100,6 +101,16 @@ struct Generator<std::string> {
   }
 };
 
+template <>
+struct Generator<Cord> {
+  int maxval;
+  explicit Generator(int m) : maxval(m) {}
+  Cord operator()(int i) const {
+    char buf[16];
+    return Cord(GenerateDigits(buf, i, maxval));
+  }
+};
+
 template <typename T, typename U>
 struct Generator<std::pair<T, U> > {
   Generator<typename remove_pair_const<T>::type> tgen;