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

Unified Diff: content/shell/renderer/test_runner/MockGrammarCheck.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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: content/shell/renderer/test_runner/MockGrammarCheck.h
diff --git a/content/shell/renderer/test_runner/MockGrammarCheck.h b/content/shell/renderer/test_runner/MockGrammarCheck.h
new file mode 100644
index 0000000000000000000000000000000000000000..348c97a95ebc26a21654db985f165e5c6317930c
--- /dev/null
+++ b/content/shell/renderer/test_runner/MockGrammarCheck.h
@@ -0,0 +1,31 @@
+// 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 MockGrammarCheck_h
+#define 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
« no previous file with comments | « content/shell/renderer/test_runner/MockConstraints.cpp ('k') | content/shell/renderer/test_runner/MockGrammarCheck.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698