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

Side by Side Diff: printing/printing_utils_unittest.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « printing/printing_utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
6 #include "printing/printing_utils.h" 8 #include "printing/printing_utils.h"
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 10
9 namespace printing { 11 namespace printing {
10 12
11 namespace { 13 namespace {
12 14
13 const size_t kTestLength = 8; 15 const size_t kTestLength = 8;
14 16
(...skipping 22 matching lines...) Expand all
37 EXPECT_EQ("abc: ", Format("abc", "")); 39 EXPECT_EQ("abc: ", Format("abc", ""));
38 EXPECT_EQ(": 123", Format("", "123")); 40 EXPECT_EQ(": 123", Format("", "123"));
39 EXPECT_EQ("abc: 123", Format("abc", "123")); 41 EXPECT_EQ("abc: 123", Format("abc", "123"));
40 EXPECT_EQ("abc: 0.9", Format("abc", "0123456789")); 42 EXPECT_EQ("abc: 0.9", Format("abc", "0123456789"));
41 EXPECT_EQ("ab...j: ", Format("abcdefghij", "123")); 43 EXPECT_EQ("ab...j: ", Format("abcdefghij", "123"));
42 EXPECT_EQ("ab...j: ", Format("abcdefghij", "0123456789")); 44 EXPECT_EQ("ab...j: ", Format("abcdefghij", "0123456789"));
43 } 45 }
44 46
45 } // namespace printing 47 } // namespace printing
46 48
OLDNEW
« no previous file with comments | « printing/printing_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698