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

Side by Side Diff: content/shell/test_runner/mock_grammar_check.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 namespace blink { 10 namespace blink {
11 class WebString; 11 class WebString;
12 struct WebTextCheckingResult; 12 struct WebTextCheckingResult;
13 } 13 }
14 14
15 namespace test_runner { 15 namespace test_runner {
16 16
17 // A mock implementation of a grammar-checker used for WebKit tests. This class 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. 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 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 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. 21 // for webkit tests, this class is not suitable for any other usages.
22 class MockGrammarCheck { 22 class MockGrammarCheck {
23 public: 23 public:
24 static bool CheckGrammarOfString(const blink::WebString&, 24 static bool CheckGrammarOfString(const blink::WebString&,
25 std::vector<blink::WebTextCheckingResult>*); 25 std::vector<blink::WebTextCheckingResult>*);
26 }; 26 };
27 27
28 } // namespace test_runner 28 } // namespace test_runner
29 29
30 #endif // COMPONENTS_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_ 30 #endif // CONTENT_SHELL_TEST_RUNNER_MOCK_GRAMMAR_CHECK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698