Adding unit test for verifying copy on write in SkSurface + bug fix in SkCanvas::clear
Review URL: https://codereview.chromium.org/13116018

git-svn-id: http://skia.googlecode.com/svn/trunk@8429 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/TestClassDef.h b/tests/TestClassDef.h
index ee4b139..4a7db4a 100644
--- a/tests/TestClassDef.h
+++ b/tests/TestClassDef.h
@@ -26,7 +26,7 @@
             virtual void onGetName(SkString* name) SK_OVERRIDE { name->set(uiname); }   \
             virtual void onRun(Reporter* reporter) SK_OVERRIDE { function(reporter); }  \
         };                                                                              \
-        static TestRegistry gReg(classname::Factory);                                   \
+        static TestRegistry gReg_##classname(classname::Factory);                       \
     }
 
 #define DEFINE_GPUTESTCLASS(uiname, classname, function)                                \
@@ -40,5 +40,5 @@
                 function(reporter, GetGrContextFactory());                              \
             }                                                                           \
         };                                                                              \
-        static TestRegistry gReg(classname::Factory);                                   \
+        static TestRegistry gReg_##classname(classname::Factory);                       \
     }