OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/wtf/text/TextEncoding.h" | 5 #include "platform/wtf/text/TextEncoding.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace WTF { | 9 namespace WTF { |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 EXPECT_STREQ("UTF-8", | 63 EXPECT_STREQ("UTF-8", |
64 TextEncoding("utf-32be").EncodingForFormSubmission().GetName()); | 64 TextEncoding("utf-32be").EncodingForFormSubmission().GetName()); |
65 EXPECT_STREQ( | 65 EXPECT_STREQ( |
66 "windows-1252", | 66 "windows-1252", |
67 TextEncoding("windows-1252").EncodingForFormSubmission().GetName()); | 67 TextEncoding("windows-1252").EncodingForFormSubmission().GetName()); |
68 EXPECT_STREQ("GBK", | 68 EXPECT_STREQ("GBK", |
69 TextEncoding("gbk").EncodingForFormSubmission().GetName()); | 69 TextEncoding("gbk").EncodingForFormSubmission().GetName()); |
70 EXPECT_STREQ("UTF-8", | 70 EXPECT_STREQ("UTF-8", |
71 TextEncoding("utf-7").EncodingForFormSubmission().GetName()); | 71 TextEncoding("utf-7").EncodingForFormSubmission().GetName()); |
72 } | 72 } |
73 } | 73 } // namespace |
74 } | 74 } // namespace WTF |
OLD | NEW |