Rename TestSize.cpp to SizeTest.cpp
authortfarina <tfarina@chromium.org>
Wed, 25 Jun 2014 17:39:00 +0000 (10:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 25 Jun 2014 17:39:02 +0000 (10:39 -0700)
It is the only file where Test is the prefix rather than the sufix.
 This patch fixes that so it matches with the rest of the files
 under tests/ directory.

And separate SkISize test into its own DEF_TEST().

BUG=None
TEST=make tests && out/Debug/tests
R=mtklein@google.com

Author: tfarina@chromium.org

Review URL: https://codereview.chromium.org/337783007

gyp/tests.gypi
tests/SizeTest.cpp [moved from tests/TestSize.cpp with 95% similarity]

index 9876f18..35431bd 100644 (file)
     '../tests/RoundRectTest.cpp',
     '../tests/RuntimeConfigTest.cpp',
     '../tests/SHA1Test.cpp',
+    '../tests/SListTest.cpp',
     '../tests/ScalarTest.cpp',
     '../tests/SerializationTest.cpp',
     '../tests/ShaderImageFilterTest.cpp',
     '../tests/ShaderOpacityTest.cpp',
+    '../tests/SizeTest.cpp',
     '../tests/SkBase64Test.cpp',
-    '../tests/SListTest.cpp',
     '../tests/SmallAllocatorTest.cpp',
     '../tests/SortTest.cpp',
     '../tests/SrcOverTest.cpp',
     '../tests/TArrayTest.cpp',
     '../tests/TLSTest.cpp',
     '../tests/TSetTest.cpp',
-    '../tests/TestSize.cpp',
     '../tests/TextureCompressionTest.cpp',
     '../tests/TileGridTest.cpp',
     '../tests/ToUnicodeTest.cpp',
similarity index 95%
rename from tests/TestSize.cpp
rename to tests/SizeTest.cpp
index 466a628..9800aa2 100644 (file)
@@ -6,9 +6,10 @@
  */
 
 #include "SkSize.h"
+
 #include "Test.h"
 
-static void TestISize(skiatest::Reporter* reporter) {
+DEF_TEST(ISize, reporter) {
     SkISize  a, b;
 
     a.set(0, 0);
@@ -31,8 +32,6 @@ static void TestISize(skiatest::Reporter* reporter) {
 }
 
 DEF_TEST(Size, reporter) {
-    TestISize(reporter);
-
     SkSize a, b;
     int ix = 5;
     int iy = 3;