Index: tests/FrontBufferedStreamTest.cpp |
diff --git a/tests/FrontBufferedStreamTest.cpp b/tests/FrontBufferedStreamTest.cpp |
index 420718ff7a6ed3201fe5d707ccce4d44535e4c63..3693fa5536a19117db699e5d5edde71f61c0da04 100644 |
--- a/tests/FrontBufferedStreamTest.cpp |
+++ b/tests/FrontBufferedStreamTest.cpp |
@@ -5,11 +5,12 @@ |
* found in the LICENSE file. |
*/ |
+#include "Test.h" |
+#include "TestClassDef.h" |
#include "SkFrontBufferedStream.h" |
#include "SkRefCnt.h" |
#include "SkStream.h" |
#include "SkTypes.h" |
-#include "Test.h" |
static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, |
const void* expectations, size_t bytesToRead) { |
@@ -150,12 +151,9 @@ static void test_buffers(skiatest::Reporter* reporter, size_t bufferSize) { |
test_read_beyond_buffer(reporter, bufferSize); |
} |
-static void TestStreams(skiatest::Reporter* reporter) { |
+DEF_TEST(FrontBufferedStream, reporter) { |
// Test 6 and 64, which are used by Android, as well as another arbitrary length. |
test_buffers(reporter, 6); |
test_buffers(reporter, 15); |
test_buffers(reporter, 64); |
} |
- |
-#include "TestClassDef.h" |
-DEFINE_TESTCLASS("FrontBufferedStream", FrontBufferedStreamTestClass, TestStreams) |