OSDN Git Service

Fix build
authorChris Craik <ccraik@google.com>
Sat, 6 Feb 2016 02:17:35 +0000 (18:17 -0800)
committerChris Craik <ccraik@google.com>
Sat, 6 Feb 2016 02:17:35 +0000 (18:17 -0800)
Change-Id: I1ad30ae50cbdff9267d0121a446e6adbe3ad17ee

libs/hwui/tests/unit/GradientCacheTests.cpp

index 5ee1705..0ee9647 100644 (file)
@@ -26,7 +26,7 @@ using namespace android::uirenderer;
 RENDERTHREAD_TEST(GradientCache, addRemove) {
     Extensions extensions;
     GradientCache cache(extensions);
-    cache.setMaxSize(5000);
+    ASSERT_LT(1000u, cache.getMaxSize()) << "Expect non-trivial size";
 
     SkColor colors[] = { 0xFF00FF00, 0xFFFF0000, 0xFF0000FF };
     float positions[] = { 1, 2, 3 };