| 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" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 | 119 |
| 120 // Mark as initialized to prevent this object from being initialized twice | 120 // Mark as initialized to prevent this object from being initialized twice |
| 121 // or more. | 121 // or more. |
| 122 initialized_ = true; | 122 initialized_ = true; |
| 123 | 123 |
| 124 // Since this MockSpellCheck class doesn't download dictionaries, this | 124 // Since this MockSpellCheck class doesn't download dictionaries, this |
| 125 // function always returns false. | 125 // function always returns false. |
| 126 return false; | 126 return false; |
| 127 } | 127 } |
| 128 |
| 129 void MockSpellCheck::FillSuggestions(const string16& word, |
| 130 std::vector<string16>* suggestions) { |
| 131 if (word == ASCIIToUTF16("wellcome")) |
| 132 suggestions->push_back(ASCIIToUTF16("welcome")); |
| 133 } |
| OLD | NEW |