root/content/shell/renderer/test_runner/MockGrammarCheck.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKGRAMMARCHECK_H_
#define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKGRAMMARCHECK_H_

#include <vector>

namespace blink {

class WebString;
struct WebTextCheckingResult;

}

namespace WebTestRunner {

// A mock implementation of a grammar-checker used for WebKit tests. This class
// only implements the minimal functionarities required by WebKit tests, i.e.
// this class just compares the given string with known grammar mistakes in
// webkit tests and adds grammar markers on them. Even though this is sufficent
// for webkit tests, this class is not suitable for any other usages.
class MockGrammarCheck {
public:
    static bool checkGrammarOfString(const blink::WebString&, std::vector<blink::WebTextCheckingResult>*);
};

}

#endif // MockSpellCheck_h

/* [<][>][^][v][top][bottom][index][help] */