| 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
|
|
|