proxy-create-namespace
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 159 969d8d4050b8b7ebfb082c860b4a16df41348d52
permissions -rw-r--r--
State as of now

* * *

diff --git a/xpcom/proxy/tests/proxy-create-threadsafety.cpp b/xpcom/proxy/tests/proxy-create-threadsafety.cpp
--- a/xpcom/proxy/tests/proxy-create-threadsafety.cpp
+++ b/xpcom/proxy/tests/proxy-create-threadsafety.cpp
@@ -90,6 +90,8 @@ 1		proxy event object released
 /***************************************************************************/
 /* ProxyTest                                                               */
 /***************************************************************************/
+
+namespace proxy_create_threadsafety {
 
 class ProxyTest : public nsIRunnable,
                   public nsITestProxy,
@@ -231,6 +233,8 @@ private:
     nsCOMPtr<nsIThread> mThreadTwo;
 };
 
+} // namespace
+
 int
 main(int argc, char **argv)
 {
@@ -242,7 +246,8 @@ main(int argc, char **argv)
         NS_GetComponentRegistrar(getter_AddRefs(registrar));
         registrar->AutoRegister(nsnull);
 
-        nsCOMPtr<nsITestProxy> tester = new ProxyTest();
+        nsCOMPtr<nsITestProxy> tester =
+            new proxy_create_threadsafety::ProxyTest();
         tester->Test(0, 0, nsnull);
     }
 
@@ -250,4 +255,3 @@ main(int argc, char **argv)
 
     return 0;
 }
-