OLD | NEW |
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 Loading... |
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 |
OLD | NEW |