OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" | 7 #include "base/macros.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
7 #include "third_party/icu/source/common/unicode/ucnv.h" | 9 #include "third_party/icu/source/common/unicode/ucnv.h" |
8 #include "url/url_canon.h" | 10 #include "url/url_canon.h" |
9 #include "url/url_canon_icu.h" | 11 #include "url/url_canon_icu.h" |
10 #include "url/url_canon_stdstring.h" | 12 #include "url/url_canon_stdstring.h" |
11 #include "url/url_test_utils.h" | 13 #include "url/url_test_utils.h" |
12 | 14 |
13 namespace url { | 15 namespace url { |
14 | 16 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 StdStringCanonOutput output(&out_str); | 153 StdStringCanonOutput output(&out_str); |
152 Component out_comp; | 154 Component out_comp; |
153 CanonicalizeQuery("a \x00z\x01", Component(0, 5), NULL, &output, &out_comp); | 155 CanonicalizeQuery("a \x00z\x01", Component(0, 5), NULL, &output, &out_comp); |
154 output.Complete(); | 156 output.Complete(); |
155 EXPECT_EQ("?a%20%00z%01", out_str); | 157 EXPECT_EQ("?a%20%00z%01", out_str); |
156 } | 158 } |
157 | 159 |
158 } // namespace | 160 } // namespace |
159 | 161 |
160 } // namespace url | 162 } // namespace url |
OLD | NEW |