OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/string_split.h" | 10 #include "base/strings/string_split.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" | 12 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 struct TestCase { | 17 struct TestCase { |
18 const char* language; | 18 const char* language; |
19 bool allow_contraction; | 19 bool allow_contraction; |
20 const wchar_t* expected_words; | 20 const wchar_t* expected_words; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 // Test initialization fails when no default language is set. | 242 // Test initialization fails when no default language is set. |
243 { | 243 { |
244 SpellcheckCharAttribute attributes; | 244 SpellcheckCharAttribute attributes; |
245 | 245 |
246 SpellcheckWordIterator iterator; | 246 SpellcheckWordIterator iterator; |
247 EXPECT_FALSE(iterator.Initialize(&attributes, true)); | 247 EXPECT_FALSE(iterator.Initialize(&attributes, true)); |
248 } | 248 } |
249 } | 249 } |
OLD | NEW |