| Index: components/test_runner/test_common.cc
|
| diff --git a/components/test_runner/test_common.cc b/components/test_runner/test_common.cc
|
| index ad06d5233e5a14889e49ea549d2c95eb1474d0ad..8a096d6c7ca21a8a7365d54c0ef3781aad8c65ef 100644
|
| --- a/components/test_runner/test_common.cc
|
| +++ b/components/test_runner/test_common.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/lazy_instance.h"
|
| #include "base/macros.h"
|
| +#include "base/rand_util.h"
|
| #include "third_party/WebKit/public/platform/Platform.h"
|
| #include "third_party/WebKit/public/web/WebKit.h"
|
|
|
| @@ -30,7 +31,10 @@ class MockBlinkPlatform : NON_EXPORTED_BASE(public blink::Platform) {
|
| }
|
| ~MockBlinkPlatform() override {}
|
| void cryptographicallyRandomValues(unsigned char* buffer,
|
| - size_t length) override {}
|
| + size_t length) override {
|
| + base::RandBytes(buffer, length);
|
| + }
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockBlinkPlatform);
|
| };
|
|
|