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

Side by Side Diff: core/fxcrt/fx_basic_gcc_unittest.cpp

Issue 1825953002: Move core/include/fxcrt to core/fxcrt/include. (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/fxcrt/fx_basic_gcc.cpp ('k') | core/fxcrt/fx_basic_list.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "core/include/fxcrt/fx_system.h" 5 #include "core/fxcrt/include/fx_system.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 TEST(fxcrt, FXSYS_atoi) { 8 TEST(fxcrt, FXSYS_atoi) {
9 EXPECT_EQ(0, FXSYS_atoi("")); 9 EXPECT_EQ(0, FXSYS_atoi(""));
10 EXPECT_EQ(0, FXSYS_atoi("0")); 10 EXPECT_EQ(0, FXSYS_atoi("0"));
11 EXPECT_EQ(-1, FXSYS_atoi("-1")); 11 EXPECT_EQ(-1, FXSYS_atoi("-1"));
12 EXPECT_EQ(2345, FXSYS_atoi("2345")); 12 EXPECT_EQ(2345, FXSYS_atoi("2345"));
13 EXPECT_EQ(2147483647, FXSYS_atoi("2147483647")); 13 EXPECT_EQ(2147483647, FXSYS_atoi("2147483647"));
14 EXPECT_EQ(-2147483647, FXSYS_atoi("-2147483647")); 14 EXPECT_EQ(-2147483647, FXSYS_atoi("-2147483647"));
15 EXPECT_EQ(9, FXSYS_atoi("9x9")); 15 EXPECT_EQ(9, FXSYS_atoi("9x9"));
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 EXPECT_EQ(0, FXSYS_atoui("0")); 79 EXPECT_EQ(0, FXSYS_atoui("0"));
80 EXPECT_EQ(0, FXSYS_atoui("-1")); 80 EXPECT_EQ(0, FXSYS_atoui("-1"));
81 EXPECT_EQ(2345, FXSYS_atoui("2345")); 81 EXPECT_EQ(2345, FXSYS_atoui("2345"));
82 EXPECT_EQ(4294967295, FXSYS_atoui("4294967295")); 82 EXPECT_EQ(4294967295, FXSYS_atoui("4294967295"));
83 EXPECT_EQ(9, FXSYS_atoui("9x9")); 83 EXPECT_EQ(9, FXSYS_atoui("9x9"));
84 84
85 // TODO(dsinclair): These are all wacky ..... 85 // TODO(dsinclair): These are all wacky .....
86 EXPECT_EQ(2147483623, FXSYS_atoi("2147483623423412348")); 86 EXPECT_EQ(2147483623, FXSYS_atoi("2147483623423412348"));
87 EXPECT_EQ(429496729, FXSYS_atoi("4294967296")); 87 EXPECT_EQ(429496729, FXSYS_atoi("4294967296"));
88 } 88 }
OLDNEW
« no previous file with comments | « core/fxcrt/fx_basic_gcc.cpp ('k') | core/fxcrt/fx_basic_list.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698