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

Unified Diff: core/src/fxcrt/fx_system_unittest.cpp

Issue 1276333006: Really Really fix tests broken at 9778206. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcrt/fx_system_unittest.cpp
diff --git a/core/src/fxcrt/fx_system_unittest.cpp b/core/src/fxcrt/fx_system_unittest.cpp
index 8a75e51cb861660856b065cc2b7efe2eb025558a..fec6063b0d10b4403d074d39f8fbc433af4ce805 100644
--- a/core/src/fxcrt/fx_system_unittest.cpp
+++ b/core/src/fxcrt/fx_system_unittest.cpp
@@ -10,6 +10,9 @@
// Unit test covering cases where PDFium replaces well-known library
// functionality on any given platformn.
Lei Zhang 2015/08/07 23:36:50 BTW, typo heere.
+
+#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
+
namespace {
const FX_CHAR kSentinel = 0x7f;
@@ -70,8 +73,6 @@ void Check64BitBase2Itoa(int64_t input, const char* expected_output) {
} // namespace
-#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
-
TEST(fxcrt, FXSYS_itoa_InvalidRadix) {
FX_CHAR buf[32];
@@ -88,8 +89,6 @@ TEST(fxcrt, FXSYS_itoa_InvalidRadix) {
EXPECT_EQ(std::string(""), buf);
}
-#endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
-
TEST(fxcrt, FXSYS_itoa) {
Check32BitBase16Itoa(std::numeric_limits<int32_t>::min(), "-80000000");
Check32BitBase10Itoa(std::numeric_limits<int32_t>::min(), "-2147483648");
@@ -114,8 +113,6 @@ TEST(fxcrt, FXSYS_itoa) {
"1111111111111111111111111111111");
}
-#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
-
TEST(fxcrt, FXSYS_i64toa_InvalidRadix) {
FX_CHAR buf[32];
@@ -132,7 +129,6 @@ TEST(fxcrt, FXSYS_i64toa_InvalidRadix) {
EXPECT_EQ(std::string(""), buf);
};
-#endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
TEST(fxcrt, FXSYS_i64toa) {
Check64BitBase16Itoa(
@@ -163,3 +159,6 @@ TEST(fxcrt, FXSYS_i64toa) {
std::numeric_limits<int64_t>::max(),
"111111111111111111111111111111111111111111111111111111111111111");
}
+
+#endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698