diff options
author | reed <reed@chromium.org> | 2015-04-11 19:29:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-11 19:29:31 -0700 |
commit | ffab15f60e784dfb7c29608968dc3030c3f7fc68 (patch) | |
tree | 0da108f03ea57920f9dc1015009113d975517b0b /tests | |
parent | 51985e3f5e608d369e52832b7ce489d85d402422 (diff) |
use anon namespace to avoid (silent) collisions between local test classes
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1079813002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DrawFilterTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/DrawFilterTest.cpp b/tests/DrawFilterTest.cpp index d01fa07338..13ae5c6bd0 100644 --- a/tests/DrawFilterTest.cpp +++ b/tests/DrawFilterTest.cpp @@ -10,12 +10,14 @@ #include "SkSurface.h" #include "Test.h" +namespace { class TestFilter : public SkDrawFilter { public: bool filter(SkPaint* p, Type) override { return true; } }; +} /** * canvas.setDrawFilter is defined to be local to the save/restore block, such that if you |