1adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project/* Licensed to the Apache Software Foundation (ASF) under one or more
2adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * contributor license agreements.  See the NOTICE file distributed with
3adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * this work for additional information regarding copyright ownership.
4adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * The ASF licenses this file to You under the Apache License, Version 2.0
5adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * (the "License"); you may not use this file except in compliance with
6adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * the License.  You may obtain a copy of the License at
7f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes *
8adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project *     http://www.apache.org/licenses/LICENSE-2.0
9f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes *
10adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * Unless required by applicable law or agreed to in writing, software
11adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS,
12adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * See the License for the specific language governing permissions and
14adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * limitations under the License.
15adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */
1654f969b83377b1540efc0180962966df0732a479Jesse Wilsonpackage libcore.java.nio.charset;
17adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project
18adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Projectimport java.nio.charset.CharacterCodingException;
19adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project
2054f969b83377b1540efc0180962966df0732a479Jesse Wilsonpublic class OldCharset_MultiByte_ISO_2022_JP extends OldCharset_AbstractTest {
21fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes  @Override protected void setUp() throws Exception {
22fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes    charsetName = "ISO-2022-JP";
23fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes    testChars = "東京 とうきょう トウキョウ Tokyo 123".toCharArray();
24fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes    testBytes = theseBytes(0x1b, 0x24, 0x42, 0x45, 0x6c, 0x35, 0x7e, 0x1b,
25fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x28, 0x42, 0x20, 0x1b, 0x24, 0x42, 0x24, 0x48,
26fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x24, 0x26, 0x24, 0x2d, 0x24, 0x67, 0x24, 0x26,
27fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x1b, 0x28, 0x42, 0x20, 0x1b, 0x24, 0x42, 0x25,
28fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x48, 0x25, 0x26, 0x25, 0x2d, 0x25, 0x67, 0x25,
29fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x26, 0x1b, 0x28, 0x42, 0x20, 0x54, 0x6f, 0x6b,
30fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes                           0x79, 0x6f, 0x20, 0x31, 0x32, 0x33);
31fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes    super.setUp();
32fc481238e31d95648c1f0181bb0df1d8e7d0dedbElliott Hughes  }
33adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project}
34