| Index: tests/SwizzlerTest.cpp
|
| diff --git a/tests/SwizzlerTest.cpp b/tests/SwizzlerTest.cpp
|
| index e1626d52f114d761c8ac3331d8d40205f8f955a7..1b34669f9780697809771bdceec1fdd8864950b8 100644
|
| --- a/tests/SwizzlerTest.cpp
|
| +++ b/tests/SwizzlerTest.cpp
|
| @@ -5,6 +5,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| +#include "SkSwizzle.h"
|
| #include "SkSwizzler.h"
|
| #include "Test.h"
|
| #include "SkOpts.h"
|
| @@ -157,3 +158,12 @@ DEF_TEST(SwizzleOpts, r) {
|
| SkOpts::RGBA_to_bgrA(&dst, &src, 1);
|
| REPORTER_ASSERT(r, dst == 0xFA04ADCA);
|
| }
|
| +
|
| +DEF_TEST(PublicSwizzleOpts, r) {
|
| + uint32_t dst, src;
|
| +
|
| + // check a totally arbitrary color
|
| + src = 0xFACEB004;
|
| + SkSwapRB(&dst, &src, 1);
|
| + REPORTER_ASSERT(r, dst == 0xFA04B0CE);
|
| +}
|
|
|