Index: test/unittests/test-utils.h |
diff --git a/test/unittests/test-utils.h b/test/unittests/test-utils.h |
index e08974a423de5f93086edc800c6b70be11939f4a..56b9691e4f8aa9c8a5b50b09a586bcfd91be7be3 100644 |
--- a/test/unittests/test-utils.h |
+++ b/test/unittests/test-utils.h |
@@ -7,6 +7,7 @@ |
#include "include/v8.h" |
#include "src/base/macros.h" |
+#include "src/base/utils/random-number-generator.h" |
#include "src/zone.h" |
#include "testing/gtest-support.h" |
@@ -46,6 +47,24 @@ class TestWithContext : public virtual TestWithIsolate { |
}; |
+namespace base { |
+ |
+class TestWithRandomNumberGenerator : public ::testing::Test { |
+ public: |
+ TestWithRandomNumberGenerator(); |
+ virtual ~TestWithRandomNumberGenerator(); |
+ |
+ RandomNumberGenerator* rng() { return &rng_; } |
+ |
+ private: |
+ RandomNumberGenerator rng_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TestWithRandomNumberGenerator); |
+}; |
+ |
+} // namespace base |
+ |
+ |
namespace internal { |
// Forward declarations. |