Index: third_party/WebKit/Source/core/testing/WorkerInternals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp |
index 6d6d19bce0e8f9c333b3c59526cb95aa0351c983..773fdad614bc5db5046d92c5dac231f7356dd867 100644 |
--- a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp |
+++ b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp |
@@ -4,6 +4,9 @@ |
#include "core/testing/WorkerInternals.h" |
+#include "bindings/core/v8/ScriptState.h" |
+#include "core/frame/Deprecation.h" |
+#include "core/frame/UseCounter.h" |
#include "core/testing/OriginTrialsTest.h" |
namespace blink { |
@@ -16,4 +19,16 @@ OriginTrialsTest* WorkerInternals::originTrialsTest() const { |
return OriginTrialsTest::create(); |
} |
+void WorkerInternals::countFeature(ScriptState* scriptState, |
+ uint32_t useCounterId) { |
+ UseCounter::count(scriptState->getExecutionContext(), |
+ static_cast<UseCounter::Feature>(useCounterId)); |
+} |
+ |
+void WorkerInternals::countDeprecation(ScriptState* scriptState, |
+ uint32_t useCounterId) { |
+ Deprecation::countDeprecation(scriptState->getExecutionContext(), |
+ static_cast<UseCounter::Feature>(useCounterId)); |
+} |
+ |
} // namespace blink |