소스 검색

Updates indention

Martin Melik Merkumians 9 년 전
부모
커밋
be553ae4eb
3개의 변경된 파일631개의 추가작업 그리고 572개의 파일을 삭제
  1. 613 554
      source/src/cip/cipconnectionmanager.c
  2. 3 3
      source/tests/cip/cipelectronickeytest.cpp
  3. 15 15
      source/tests/utils/xorshiftrandomtests.cpp

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 613 - 554
source/src/cip/cipconnectionmanager.c


+ 3 - 3
source/tests/cip/cipelectronickeytest.cpp

@@ -153,9 +153,9 @@ TEST(CipElectronicKey, ParseElectronicKeyTest) {
   CHECK_EQUAL( 256, ElectronicKeyFormat4GetVendorId(key) );
   CHECK_EQUAL( 512, ElectronicKeyFormat4GetDeviceType(key) );
   CHECK_EQUAL( 768, ElectronicKeyFormat4GetProductCode(key) );
-  CHECK_TRUE(ElectronicKeyFormat4GetMajorRevisionCompatibility(key));
-  CHECK_EQUAL(0x04, ElectronicKeyFormat4GetMajorRevision(key));
-  CHECK_EQUAL(0x05, ElectronicKeyFormat4GetMinorRevision(key));
+  CHECK_TRUE( ElectronicKeyFormat4GetMajorRevisionCompatibility(key) );
+  CHECK_EQUAL( 0x04, ElectronicKeyFormat4GetMajorRevision(key) );
+  CHECK_EQUAL( 0x05, ElectronicKeyFormat4GetMinorRevision(key) );
 
   MEMCMP_EQUAL(message + 2, key, 8);
 

+ 15 - 15
source/tests/utils/xorshiftrandomtests.cpp

@@ -19,24 +19,24 @@ TEST_GROUP(XorShiftRandom)
 /* This test should always return 0 as the next random number (see XorShift algorithm) */
 TEST(XorShiftRandom, SeedZeroInitResult)
 {
-	uint32_t nResult;
-	nResult = 1;
-	SetXorShiftSeed(0);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(0, nResult);
+  uint32_t nResult;
+  nResult = 1;
+  SetXorShiftSeed(0);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(0, nResult);
 }
 
 /*Characterization test*/
 TEST(XorShiftRandom, SeedOneCharacterization)
 {
-	uint32_t nResult;
-	SetXorShiftSeed(1);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(270369, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(67634689, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(2647435461, nResult);
-	nResult = NextXorShiftUint32();
-	LONGS_EQUAL(307599695, nResult);
+  uint32_t nResult;
+  SetXorShiftSeed(1);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(270369, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(67634689, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(2647435461, nResult);
+  nResult = NextXorShiftUint32();
+  LONGS_EQUAL(307599695, nResult);
 }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.