Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2614)

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp

Issue 1419293005: Add assertions that the empty Platform::cryptographicallyRandomValues() overrides are not being use… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to RELEASE_ASSERT and use base::RandBytes() in Chromium. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp b/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
index e29ecb6a423a6b19eaa292104d36f6f44645bc43..cafdcae19833cfbbad2a9cf5b64352a2cdafc2cf 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontCacheTest.cpp
@@ -16,7 +16,10 @@ class EmptyPlatform : public Platform {
public:
EmptyPlatform() {}
~EmptyPlatform() override {}
- void cryptographicallyRandomValues(unsigned char* buffer, size_t length) override { }
+ void cryptographicallyRandomValues(unsigned char* buffer, size_t length) override
+ {
+ RELEASE_ASSERT_NOT_REACHED();
+ }
};
TEST(FontCache, getLastResortFallbackFont)

Powered by Google App Engine
This is Rietveld 408576698