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

Unified Diff: tests/OnceTest.cpp

Issue 653183006: SkLazyPtr suitable as a local or class member. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: namespace Created 6 years, 2 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 | « tests/LazyPtr.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/OnceTest.cpp
diff --git a/tests/OnceTest.cpp b/tests/OnceTest.cpp
index 192abaaee36266c81ceb3e7773b8ae524415a669..e2711f00bb2b3d58d0e670c4461fbbc0430e7855 100644
--- a/tests/OnceTest.cpp
+++ b/tests/OnceTest.cpp
@@ -31,6 +31,8 @@ static void add_six(int* x) {
*x += 6;
}
+namespace {
+
class Racer : public SkRunnable {
public:
SkOnceFlag* once;
@@ -41,6 +43,8 @@ public:
}
};
+} // namespace
+
DEF_TEST(SkOnce_Multithreaded, r) {
const int kTasks = 16;
« no previous file with comments | « tests/LazyPtr.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698