Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: tests/DrawFilterTest.cpp

Issue 1079813002: use anon namespace to avoid (silent) collisions between local test classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/drawfilter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DrawFilterTest.cpp
diff --git a/tests/DrawFilterTest.cpp b/tests/DrawFilterTest.cpp
index d01fa07338cb7edc90431ab2aa75b3f96f4d6524..13ae5c6bd073753049a9b5b10115a71deefc4c73 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
« no previous file with comments | « gm/drawfilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698