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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2606633002: encrypted-media tests should not count # of SuspendableObjects (Closed)
Patch Set: temp Created 4 years 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 1e8ba46b6e1ecbcb9d1cb155c6b81fcfb5fa0fbe..c9c3ea6c7a5c397b1f2cdc76d3f891a6ceca5b74 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1481,6 +1481,15 @@ void Internals::setUserPreferredLanguages(const Vector<String>& languages) {
overrideUserPreferredLanguages(atomicLanguages);
}
+unsigned Internals::mediaKeysCount() {
+ return InstanceCounters::counterValue(InstanceCounters::MediaKeysCounter);
+}
+
+unsigned Internals::mediaKeySessionCount() {
+ return InstanceCounters::counterValue(
+ InstanceCounters::MediaKeySessionCounter);
+}
+
unsigned Internals::suspendableObjectCount(Document* document) {
DCHECK(document);
return document->suspendableObjectCount();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698