| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 "ISO-8859-7" }, | 220 "ISO-8859-7" }, |
| 221 { "ISO-8859-8-I_with_no_encoding_specified.html", | 221 { "ISO-8859-8-I_with_no_encoding_specified.html", |
| 222 "expected_ISO-8859-8-I_saved_from_no_encoding_specified.html", | 222 "expected_ISO-8859-8-I_saved_from_no_encoding_specified.html", |
| 223 "windows-1255" }, | 223 "windows-1255" }, |
| 224 { "KOI8-R_with_no_encoding_specified.html", | 224 { "KOI8-R_with_no_encoding_specified.html", |
| 225 "expected_KOI8-R_saved_from_no_encoding_specified.html", | 225 "expected_KOI8-R_saved_from_no_encoding_specified.html", |
| 226 "KOI8-R" }, | 226 "KOI8-R" }, |
| 227 { "Shift-JIS_with_no_encoding_specified.html", | 227 { "Shift-JIS_with_no_encoding_specified.html", |
| 228 "expected_Shift-JIS_saved_from_no_encoding_specified.html", | 228 "expected_Shift-JIS_saved_from_no_encoding_specified.html", |
| 229 "Shift_JIS" }, | 229 "Shift_JIS" }, |
| 230 { "UTF-8_with_no_encoding_specified.html", | |
| 231 "expected_UTF-8_saved_from_no_encoding_specified.html", | |
| 232 "UTF-8" }, | |
| 233 { "EUC-KR_with_no_encoding_specified.html", | 230 { "EUC-KR_with_no_encoding_specified.html", |
| 234 "expected_EUC-KR_saved_from_no_encoding_specified.html", | 231 "expected_EUC-KR_saved_from_no_encoding_specified.html", |
| 235 "EUC-KR" }, | 232 "EUC-KR" }, |
| 236 { "windows-1251_with_no_encoding_specified.html", | 233 { "windows-1251_with_no_encoding_specified.html", |
| 237 "expected_windows-1251_saved_from_no_encoding_specified.html", | 234 "expected_windows-1251_saved_from_no_encoding_specified.html", |
| 238 "windows-1251" }, | 235 "windows-1251" }, |
| 239 { "windows-1254_with_no_encoding_specified.html", | 236 { "windows-1254_with_no_encoding_specified.html", |
| 240 "expected_windows-1254_saved_from_no_encoding_specified.html", | 237 "expected_windows-1254_saved_from_no_encoding_specified.html", |
| 241 "windows-1254" }, | 238 "windows-1254" }, |
| 242 { "windows-1255_with_no_encoding_specified.html", | 239 { "windows-1255_with_no_encoding_specified.html", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 273 | 270 |
| 274 // Dump the page, the content of dump page should be equal with our expect | 271 // Dump the page, the content of dump page should be equal with our expect |
| 275 // result file. | 272 // result file. |
| 276 base::FilePath expected_result_file_name = | 273 base::FilePath expected_result_file_name = |
| 277 base::FilePath().AppendASCII(kAutoDetectDir). | 274 base::FilePath().AppendASCII(kAutoDetectDir). |
| 278 AppendASCII(kExpectedResultDir). | 275 AppendASCII(kExpectedResultDir). |
| 279 AppendASCII(kTestDatas[i].expected_result); | 276 AppendASCII(kTestDatas[i].expected_result); |
| 280 SaveAndCompare(kTestDatas[i].test_file_name, expected_result_file_name); | 277 SaveAndCompare(kTestDatas[i].test_file_name, expected_result_file_name); |
| 281 } | 278 } |
| 282 } | 279 } |
| OLD | NEW |