Whitespace changes in fx_system_unittest.cpp to match XFA
[pdfium.git] / core / src / fxcrt / fx_system_unittest.cpp
index 8a75e51..824ed53 100644 (file)
@@ -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,13 +129,11 @@ TEST(fxcrt, FXSYS_i64toa_InvalidRadix) {
   EXPECT_EQ(std::string(""), buf);
 };
 
-#endif  // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
-
 TEST(fxcrt, FXSYS_i64toa) {
-  Check64BitBase16Itoa(
-      std::numeric_limits<int64_t>::min(), "-8000000000000000");
-  Check64BitBase10Itoa(
-      std::numeric_limits<int64_t>::min(), "-9223372036854775808");
+  Check64BitBase16Itoa(std::numeric_limits<int64_t>::min(),
+                       "-8000000000000000");
+  Check64BitBase10Itoa(std::numeric_limits<int64_t>::min(),
+                       "-9223372036854775808");
   Check64BitBase2Itoa(
       std::numeric_limits<int64_t>::min(),
       "-1000000000000000000000000000000000000000000000000000000000000000");
@@ -155,11 +150,12 @@ TEST(fxcrt, FXSYS_i64toa) {
   Check64BitBase10Itoa(42, "42");
   Check64BitBase2Itoa(42, "101010");
 
-  Check64BitBase16Itoa(
-      std::numeric_limits<int64_t>::max(), "7fffffffffffffff");
-  Check64BitBase10Itoa(
-      std::numeric_limits<int64_t>::max(), "9223372036854775807");
+  Check64BitBase16Itoa(std::numeric_limits<int64_t>::max(), "7fffffffffffffff");
+  Check64BitBase10Itoa(std::numeric_limits<int64_t>::max(),
+                       "9223372036854775807");
   Check64BitBase2Itoa(
       std::numeric_limits<int64_t>::max(),
       "111111111111111111111111111111111111111111111111111111111111111");
 }
+
+#endif  // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_