OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MockGrammarCheck_h |
| 6 #define MockGrammarCheck_h |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class WebString; |
| 13 struct WebTextCheckingResult; |
| 14 |
| 15 } |
| 16 |
| 17 namespace WebTestRunner { |
| 18 |
| 19 // A mock implementation of a grammar-checker used for WebKit tests. This class |
| 20 // only implements the minimal functionarities required by WebKit tests, i.e. |
| 21 // this class just compares the given string with known grammar mistakes in |
| 22 // webkit tests and adds grammar markers on them. Even though this is sufficent |
| 23 // for webkit tests, this class is not suitable for any other usages. |
| 24 class MockGrammarCheck { |
| 25 public: |
| 26 static bool checkGrammarOfString(const blink::WebString&, std::vector<blink:
:WebTextCheckingResult>*); |
| 27 }; |
| 28 |
| 29 } |
| 30 |
| 31 #endif // MockSpellCheck_h |
OLD | NEW |