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

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

Issue 1978683002: Enable hyphens: auto and none in BreakingContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for heuristic, adjust widths of hyphens-auto-mock test Created 4 years, 7 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
Index: third_party/WebKit/Source/core/testing/MockHyphenation.h
diff --git a/third_party/WebKit/Source/platform/text/mac/HyphenationMac.cpp b/third_party/WebKit/Source/core/testing/MockHyphenation.h
similarity index 52%
copy from third_party/WebKit/Source/platform/text/mac/HyphenationMac.cpp
copy to third_party/WebKit/Source/core/testing/MockHyphenation.h
index ca2b39fe6cce5b64bfbea81e4f691d92e2a85acc..c5ddded042c406515b120c74d7194a02b3e32f1c 100644
--- a/third_party/WebKit/Source/platform/text/mac/HyphenationMac.cpp
+++ b/third_party/WebKit/Source/core/testing/MockHyphenation.h
@@ -2,13 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef MockHyphenation_h
+#define MockHyphenation_h
+
#include "platform/text/Hyphenation.h"
namespace blink {
-PassRefPtr<Hyphenation> Hyphenation::platformGetHyphenation(const AtomicString&)
-{
- return nullptr;
-}
+class MockHyphenation : public Hyphenation {
+public:
+ size_t lastHyphenLocation(const StringView&, size_t beforeIndex) const override;
+};
} // namespace blink
+
+#endif // MockHyphenation_h
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.idl ('k') | third_party/WebKit/Source/core/testing/MockHyphenation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698