Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / tests / OnceTest.cpp
index 192abaa..da901f4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "SkOnce.h"
+#include "SkRunnable.h"
 #include "SkTaskGroup.h"
 #include "Test.h"
 
@@ -31,6 +32,8 @@ static void add_six(int* x) {
     *x += 6;
 }
 
+namespace {
+
 class Racer : public SkRunnable {
 public:
     SkOnceFlag* once;
@@ -41,6 +44,8 @@ public:
     }
 };
 
+}  // namespace
+
 DEF_TEST(SkOnce_Multithreaded, r) {
     const int kTasks = 16;