OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stddef.h> |
| 6 |
5 #include <map> | 7 #include <map> |
6 #include <string> | 8 #include <string> |
7 | 9 |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
10 #include "base/i18n/icu_string_conversions.h" | 12 #include "base/i18n/icu_string_conversions.h" |
| 13 #include "base/macros.h" |
11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/tools/convert_dict/aff_reader.h" | 16 #include "chrome/tools/convert_dict/aff_reader.h" |
14 #include "chrome/tools/convert_dict/dic_reader.h" | 17 #include "chrome/tools/convert_dict/dic_reader.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/hunspell/google/bdict_reader.h" | 19 #include "third_party/hunspell/google/bdict_reader.h" |
17 #include "third_party/hunspell/google/bdict_writer.h" | 20 #include "third_party/hunspell/google/bdict_writer.h" |
18 | 21 |
19 namespace { | 22 namespace { |
20 | 23 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 }; | 201 }; |
199 | 202 |
200 std::map<base::string16, bool> word_list; | 203 std::map<base::string16, bool> word_list; |
201 for (size_t i = 0; i < arraysize(kWords); ++i) | 204 for (size_t i = 0; i < arraysize(kWords); ++i) |
202 word_list.insert( | 205 word_list.insert( |
203 std::make_pair<base::string16, bool>(base::WideToUTF16(kWords[i]), | 206 std::make_pair<base::string16, bool>(base::WideToUTF16(kWords[i]), |
204 true)); | 207 true)); |
205 | 208 |
206 RunDictionaryTest(kCodepage, word_list); | 209 RunDictionaryTest(kCodepage, word_list); |
207 } | 210 } |
OLD | NEW |