Fixup unit tests for Protected Vulkan

Since we're enabling Protectedness testing in Vulkan (for both Ganesh and Graphite) a lot of the Ganesh tests needs some updating.

Bug: b/237108194
Change-Id: I0dba1dcebe4a9f8921e6dfa9ee819bbf0b99920d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/789417
Reviewed-by: Nicolette Prevost <[email protected]>
Commit-Queue: Robert Phillips <[email protected]>
diff --git a/tests/WrappedSurfaceCopyOnWriteTest.cpp b/tests/WrappedSurfaceCopyOnWriteTest.cpp
index 5b923ca..46f75ca 100644
--- a/tests/WrappedSurfaceCopyOnWriteTest.cpp
+++ b/tests/WrappedSurfaceCopyOnWriteTest.cpp
@@ -53,14 +53,20 @@
                                  reporter,
                                  ctxInfo,
                                  CtsEnforcement::kApiLevel_T) {
+    using namespace skgpu;
+
     GrDirectContext* dContext = ctxInfo.directContext();
 
+    Protected isProtected = Protected(dContext->priv().caps()->supportsProtectedContent());
+
     auto makeDirectBackendSurface = [&]() {
         auto info = SkImageInfo::Make({10, 10}, kRGBA_8888_SkColorType, kPremul_SkAlphaType);
         return sk_gpu_test::MakeBackendTextureSurface(dContext,
                                                       info,
                                                       kTopLeft_GrSurfaceOrigin,
-                                                      /*sample count*/ 1);
+                                                      /* sampleCnt= */ 1,
+                                                      Mipmapped::kNo,
+                                                      isProtected);
     };
 
     auto imageProxyID = [&](const sk_sp<SkImage>& img) {