OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "webkit/tools/test_shell/mock_spellcheck.h" | 5 #include "webkit/tools/test_shell/mock_spellcheck.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" |
13 | 14 |
14 MockSpellCheck::MockSpellCheck() | 15 MockSpellCheck::MockSpellCheck() |
15 : initialized_(false) { | 16 : initialized_(false) { |
16 } | 17 } |
17 | 18 |
18 MockSpellCheck::~MockSpellCheck() { | 19 MockSpellCheck::~MockSpellCheck() { |
19 } | 20 } |
20 | 21 |
21 bool MockSpellCheck::SpellCheckWord(const string16& text, | 22 bool MockSpellCheck::SpellCheckWord(const string16& text, |
22 int* misspelledOffset, | 23 int* misspelledOffset, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 118 } |
118 | 119 |
119 // Mark as initialized to prevent this object from being initialized twice | 120 // Mark as initialized to prevent this object from being initialized twice |
120 // or more. | 121 // or more. |
121 initialized_ = true; | 122 initialized_ = true; |
122 | 123 |
123 // Since this MockSpellCheck class doesn't download dictionaries, this | 124 // Since this MockSpellCheck class doesn't download dictionaries, this |
124 // function always returns false. | 125 // function always returns false. |
125 return false; | 126 return false; |
126 } | 127 } |
OLD | NEW |