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

Unified Diff: Source/core/fetch/ResourceTest.cpp

Issue 1292983003: Add missing getTraceCategoryEnabledFlag() override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reorder methods for tidiness Created 5 years, 4 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceTest.cpp
diff --git a/Source/core/fetch/ResourceTest.cpp b/Source/core/fetch/ResourceTest.cpp
index 84372390630c7d93e5190c63f14ce7ba93f2f7f6..6ad9f3c6921c7ab1b13bffe14e63ff3a902283fa 100644
--- a/Source/core/fetch/ResourceTest.cpp
+++ b/Source/core/fetch/ResourceTest.cpp
@@ -27,10 +27,6 @@ public:
{
m_cachedURLs.append(url);
}
- void cryptographicallyRandomValues(unsigned char* buffer, size_t length) override
- {
- ASSERT_NOT_REACHED();
- }
const Vector<WebURL>& cachedURLs() const
{
@@ -42,6 +38,18 @@ public:
return m_oldPlatform->currentThread();
}
+ // These blink::Platform methods must be overriden to make a usable object.
+ void cryptographicallyRandomValues(unsigned char* buffer, size_t length) override
+ {
+ ASSERT_NOT_REACHED();
+ }
+
+ const unsigned char* getTraceCategoryEnabledFlag(const char* categoryName) override
+ {
+ static const unsigned char tracingIsDisabled = 0;
+ return &tracingIsDisabled;
+ }
+
private:
Platform* m_oldPlatform; // Not owned.
Vector<WebURL> m_cachedURLs;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698