From 9ea53f93e79ba312c4b3943923450a8b4aa57c82 Mon Sep 17 00:00:00 2001 From: tfarina Date: Tue, 24 Jun 2014 06:50:39 -0700 Subject: Preprend Test to test function name generated by DEF_TEST() macro. That way when declaring a test with DEF_TEST() macro, you don't have to uniquify the test name because it might colide with the class it is being testing. For example, if you are testing SkBase64 and do: DEF_TEST(SkBase64, reporter) { } That will generate an error because the macro will declare a function named SkBase64 which colides with the type SkBase64. By adding Test to the function name we avoid this problem. Fixed the entries found with the following command line: $ git grep "Test, r" | grep DEF BUG=None TEST=make tests && out/Debug/tests R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/345753007 --- tests/GrContextFactoryTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/GrContextFactoryTest.cpp') diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index 461a57a6d6..0191f1add8 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -10,7 +10,7 @@ #include "GrContextFactory.h" #include "Test.h" -DEF_GPUTEST(GrContextFactoryTest, reporter, factory) { +DEF_GPUTEST(GrContextFactory, reporter, factory) { // Reset in case some other test has been using it first. factory->destroyContexts(); -- cgit v1.2.3