| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "base/strings/utf_offset_string_conversions.h" | 9 #include "base/strings/utf_offset_string_conversions.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 EXPECT_EQ(3u, adjustments_on_adjusted_string[3].original_length); | 286 EXPECT_EQ(3u, adjustments_on_adjusted_string[3].original_length); |
| 287 EXPECT_EQ(1u, adjustments_on_adjusted_string[3].output_length); | 287 EXPECT_EQ(1u, adjustments_on_adjusted_string[3].output_length); |
| 288 EXPECT_EQ(19u, adjustments_on_adjusted_string[4].original_offset); | 288 EXPECT_EQ(19u, adjustments_on_adjusted_string[4].original_offset); |
| 289 EXPECT_EQ(3u, adjustments_on_adjusted_string[4].original_length); | 289 EXPECT_EQ(3u, adjustments_on_adjusted_string[4].original_length); |
| 290 EXPECT_EQ(0u, adjustments_on_adjusted_string[4].output_length); | 290 EXPECT_EQ(0u, adjustments_on_adjusted_string[4].output_length); |
| 291 EXPECT_EQ(25u, adjustments_on_adjusted_string[5].original_offset); | 291 EXPECT_EQ(25u, adjustments_on_adjusted_string[5].original_offset); |
| 292 EXPECT_EQ(1u, adjustments_on_adjusted_string[5].original_length); | 292 EXPECT_EQ(1u, adjustments_on_adjusted_string[5].original_length); |
| 293 EXPECT_EQ(2u, adjustments_on_adjusted_string[5].output_length); | 293 EXPECT_EQ(2u, adjustments_on_adjusted_string[5].output_length); |
| 294 } | 294 } |
| 295 | 295 |
| 296 } // namaspace base | 296 } // namespace base |
| OLD | NEW |