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

Side by Side Diff: core/src/fxcrt/fx_system_unittest.cpp

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « core/src/fpdfapi/fpdf_render/render_int.h ('k') | core/src/fxge/dib/fx_dib_composite.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 PDFium 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 <string> 5 #include <string>
6 6
7 #include "core/include/fxcrt/fx_system.h" 7 #include "core/include/fxcrt/fx_system.h"
8 #include "testing/fx_string_testhelpers.h" 8 #include "testing/fx_string_testhelpers.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 EXPECT_EQ(std::string(""), buf); 120 EXPECT_EQ(std::string(""), buf);
121 121
122 FXSYS_i64toa(42, buf, 1); 122 FXSYS_i64toa(42, buf, 1);
123 EXPECT_EQ(std::string(""), buf); 123 EXPECT_EQ(std::string(""), buf);
124 124
125 FXSYS_i64toa(42, buf, 0); 125 FXSYS_i64toa(42, buf, 0);
126 EXPECT_EQ(std::string(""), buf); 126 EXPECT_EQ(std::string(""), buf);
127 127
128 FXSYS_i64toa(42, buf, -1); 128 FXSYS_i64toa(42, buf, -1);
129 EXPECT_EQ(std::string(""), buf); 129 EXPECT_EQ(std::string(""), buf);
130 }; 130 }
131 131
132 TEST(fxcrt, FXSYS_i64toa) { 132 TEST(fxcrt, FXSYS_i64toa) {
133 Check64BitBase16Itoa(std::numeric_limits<int64_t>::min(), 133 Check64BitBase16Itoa(std::numeric_limits<int64_t>::min(),
134 "-8000000000000000"); 134 "-8000000000000000");
135 Check64BitBase10Itoa(std::numeric_limits<int64_t>::min(), 135 Check64BitBase10Itoa(std::numeric_limits<int64_t>::min(),
136 "-9223372036854775808"); 136 "-9223372036854775808");
137 Check64BitBase2Itoa( 137 Check64BitBase2Itoa(
138 std::numeric_limits<int64_t>::min(), 138 std::numeric_limits<int64_t>::min(),
139 "-1000000000000000000000000000000000000000000000000000000000000000"); 139 "-1000000000000000000000000000000000000000000000000000000000000000");
140 140
(...skipping 11 matching lines...) Expand all
152 152
153 Check64BitBase16Itoa(std::numeric_limits<int64_t>::max(), "7fffffffffffffff"); 153 Check64BitBase16Itoa(std::numeric_limits<int64_t>::max(), "7fffffffffffffff");
154 Check64BitBase10Itoa(std::numeric_limits<int64_t>::max(), 154 Check64BitBase10Itoa(std::numeric_limits<int64_t>::max(),
155 "9223372036854775807"); 155 "9223372036854775807");
156 Check64BitBase2Itoa( 156 Check64BitBase2Itoa(
157 std::numeric_limits<int64_t>::max(), 157 std::numeric_limits<int64_t>::max(),
158 "111111111111111111111111111111111111111111111111111111111111111"); 158 "111111111111111111111111111111111111111111111111111111111111111");
159 } 159 }
160 160
161 #endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 161 #endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_render/render_int.h ('k') | core/src/fxge/dib/fx_dib_composite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698