OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SPELL_CHECK_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_SPELL_CHECK_H_ |
6 #define COMPONENTS_TEST_RUNNER_MOCK_SPELL_CHECK_H_ | 6 #define COMPONENTS_TEST_RUNNER_MOCK_SPELL_CHECK_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/platform/WebVector.h" | 12 #include "third_party/WebKit/public/platform/WebVector.h" |
13 #include "third_party/WebKit/public/web/WebTextCheckingResult.h" | 13 #include "third_party/WebKit/public/web/WebTextCheckingResult.h" |
14 | 14 |
15 namespace test_runner { | 15 namespace test_runner { |
16 | 16 |
17 // A mock implementation of a spell-checker used for WebKit tests. | 17 // A mock implementation of a spell-checker used for WebKit tests. |
18 // This class only implements the minimal functionarities required by WebKit | 18 // This class only implements the minimal functionarities required by WebKit |
19 // tests, i.e. this class just compares the given string with known misspelled | 19 // tests, i.e. this class just compares the given string with known misspelled |
20 // words in webkit tests and mark them as missspelled. | 20 // words in webkit tests and mark them as missspelled. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // A flag representing whether or not this object is initialized. | 67 // A flag representing whether or not this object is initialized. |
68 bool initialized_; | 68 bool initialized_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(MockSpellCheck); | 70 DISALLOW_COPY_AND_ASSIGN(MockSpellCheck); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace test_runner | 73 } // namespace test_runner |
74 | 74 |
75 #endif // COMPONENTS_TEST_RUNNER_MOCK_SPELL_CHECK_H_ | 75 #endif // COMPONENTS_TEST_RUNNER_MOCK_SPELL_CHECK_H_ |
OLD | NEW |