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

Unified Diff: third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h

Issue 2438033003: [NOT FOR COMMIT] Layout test for WebFonts cache-aware timeout adaption (Closed)
Patch Set: rebase Created 4 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/core/testing/CacheAwareFontDisplayTest.h
diff --git a/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h b/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h
new file mode 100644
index 0000000000000000000000000000000000000000..62ec05080e05c3ee9ab26259985c563d27f71845
--- /dev/null
+++ b/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CacheAwareFontDisplayTest_h
+#define CacheAwareFontDisplayTest_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class Document;
+class FontResource;
+
+class CacheAwareFontDisplayTest final
+ : public GarbageCollectedFinalized<CacheAwareFontDisplayTest>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static CacheAwareFontDisplayTest* create(Document* document,
+ const String& fontUrl) {
+ return new CacheAwareFontDisplayTest(document, fontUrl);
+ }
+
+ void fontLoadShortLimitCallback();
+ void fontLoadLongLimitCallback();
+ void willReloadAfterDiskCacheMiss();
+
+ DECLARE_TRACE();
+
+ private:
+ explicit CacheAwareFontDisplayTest(Document*, const String& fontUrl);
+
+ WeakMember<FontResource> m_fontResource;
+};
+
+} // namespace blink
+
+#endif // CacheAwareFontDisplayTest_h

Powered by Google App Engine
This is Rietveld 408576698