Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: base/strings/utf_offset_string_conversions_unittest.cc

Issue 1548993002: Switch to standard integer types in base/strings/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/strings/utf_offset_string_conversions.cc ('k') | base/strings/utf_string_conversion_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698