[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / content / shell / renderer / test_runner / MockGrammarCheck.h
blob9b0d4afb68af25d713f68f32477fbe916d64a1e8
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.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKGRAMMARCHECK_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKGRAMMARCHECK_H_
8 #include <vector>
10 namespace blink {
11 class WebString;
12 struct WebTextCheckingResult;
15 namespace content {
17 // A mock implementation of a grammar-checker used for WebKit tests. This class
18 // only implements the minimal functionarities required by WebKit tests, i.e.
19 // this class just compares the given string with known grammar mistakes in
20 // webkit tests and adds grammar markers on them. Even though this is sufficent
21 // for webkit tests, this class is not suitable for any other usages.
22 class MockGrammarCheck {
23 public:
24 static bool checkGrammarOfString(const blink::WebString&, std::vector<blink::WebTextCheckingResult>*);
27 } // namespace content
29 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKGRAMMARCHECK_H_