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

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

Issue 1755273002: Fix parsing of object numbers > 16,777,216. (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
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/include/fxcrt/fx_system.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7
Tom Sepez 2016/03/02 20:56:38 note: might be fun to cover the other FXYS_*toi()
dsinclair 2016/03/02 21:27:29 Done.
8 TEST(fxcrt, FXSYS_atoui) {
9 EXPECT_EQ(0, FXSYS_atoui("0"));
10 EXPECT_EQ(2345, FXSYS_atoui("2345"));
11 EXPECT_EQ(4294967295, FXSYS_atoui("4294967295"));
12 EXPECT_EQ(4294967295, FXSYS_atoui("-1"));
13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698