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 <algorithm> | 7 #include <algorithm> |
6 | 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
9 #include "base/strings/utf_offset_string_conversions.h" | 12 #include "base/strings/utf_offset_string_conversions.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 | 14 |
12 namespace base { | 15 namespace base { |
13 | 16 |
14 namespace { | 17 namespace { |
15 | 18 |
16 static const size_t kNpos = string16::npos; | 19 static const size_t kNpos = string16::npos; |
17 | 20 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 EXPECT_EQ(1u, adjustments_on_adjusted_string[3].output_length); | 290 EXPECT_EQ(1u, adjustments_on_adjusted_string[3].output_length); |
288 EXPECT_EQ(19u, adjustments_on_adjusted_string[4].original_offset); | 291 EXPECT_EQ(19u, adjustments_on_adjusted_string[4].original_offset); |
289 EXPECT_EQ(3u, adjustments_on_adjusted_string[4].original_length); | 292 EXPECT_EQ(3u, adjustments_on_adjusted_string[4].original_length); |
290 EXPECT_EQ(0u, adjustments_on_adjusted_string[4].output_length); | 293 EXPECT_EQ(0u, adjustments_on_adjusted_string[4].output_length); |
291 EXPECT_EQ(25u, adjustments_on_adjusted_string[5].original_offset); | 294 EXPECT_EQ(25u, adjustments_on_adjusted_string[5].original_offset); |
292 EXPECT_EQ(1u, adjustments_on_adjusted_string[5].original_length); | 295 EXPECT_EQ(1u, adjustments_on_adjusted_string[5].original_length); |
293 EXPECT_EQ(2u, adjustments_on_adjusted_string[5].output_length); | 296 EXPECT_EQ(2u, adjustments_on_adjusted_string[5].output_length); |
294 } | 297 } |
295 | 298 |
296 } // namespace base | 299 } // namespace base |
OLD | NEW |