summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-08-07 16:31:03 -0700
committerTom Sepez <tsepez@chromium.org>2015-08-07 16:31:03 -0700
commit48f1947602817a3b5331b6504518e846addfbd71 (patch)
tree4e542b12653a4834631d097d86d34d86a98a6fe7 /core
parent57d994c553e937efebc7d1d238ceff75885001e8 (diff)
downloadpdfium-48f1947602817a3b5331b6504518e846addfbd71.tar.xz
Really Really fix tests broken at 9778206.
Stub out failing platform entirely TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1276333006 .
Diffstat (limited to 'core')
-rw-r--r--core/src/fxcrt/fx_system_unittest.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/src/fxcrt/fx_system_unittest.cpp b/core/src/fxcrt/fx_system_unittest.cpp
index 8a75e51cb8..fec6063b0d 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.
+
+#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_
+