Renamed DSL Ternary to Select

Change-Id: Idd0d49d3564dc3a24455db3c504ffa124f34dd05
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/371336
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
diff --git a/tests/SkSLDSLTest.cpp b/tests/SkSLDSLTest.cpp
index 0b461cd..e1700d9 100644
--- a/tests/SkSLDSLTest.cpp
+++ b/tests/SkSLDSLTest.cpp
@@ -1091,6 +1091,23 @@
     REPORTER_ASSERT(r, whitespace_insensitive_compare(y, "return true;"));
 }
 
+DEF_GPUTEST_FOR_MOCK_CONTEXT(DSLSelect, r, ctxInfo) {
+    AutoDSLContext context(ctxInfo.directContext()->priv().getGpu());
+    Var a(kInt, "a");
+    Expression x = Select(a > 0, 1, -1);
+    REPORTER_ASSERT(r, x.release()->description() == "((a > 0) ? 1 : -1)");
+
+    {
+        ExpectError error(r, "error: expected 'bool', but found 'int'\n");
+        Select(a, 1, -1).release();
+    }
+
+    {
+        ExpectError error(r, "error: ternary operator result mismatch: 'float2', 'float3'\n");
+        Select(a > 0, Float2(1), Float3(1)).release();
+    }
+}
+
 DEF_GPUTEST_FOR_MOCK_CONTEXT(DSLSwitch, r, ctxInfo) {
     AutoDSLContext context(ctxInfo.directContext()->priv().getGpu());
 
@@ -1179,23 +1196,6 @@
     REPORTER_ASSERT(r, e13.release()->description() == "float4(a.xyz, float(1)).x");
 }
 
-DEF_GPUTEST_FOR_MOCK_CONTEXT(DSLTernary, r, ctxInfo) {
-    AutoDSLContext context(ctxInfo.directContext()->priv().getGpu());
-    Var a(kInt, "a");
-    Expression x = Ternary(a > 0, 1, -1);
-    REPORTER_ASSERT(r, x.release()->description() == "((a > 0) ? 1 : -1)");
-
-    {
-        ExpectError error(r, "error: expected 'bool', but found 'int'\n");
-        Ternary(a, 1, -1).release();
-    }
-
-    {
-        ExpectError error(r, "error: ternary operator result mismatch: 'float2', 'float3'\n");
-        Ternary(a > 0, Float2(1), Float3(1)).release();
-    }
-}
-
 DEF_GPUTEST_FOR_MOCK_CONTEXT(DSLWhile, r, ctxInfo) {
     AutoDSLContext context(ctxInfo.directContext()->priv().getGpu());
     Statement x = While(true, Block());