SoftwareTesting:Tools:jsshHowTo: Difference between revisions

Jump to navigation Jump to search
 
Line 49: Line 49:
[http://people.mozilla.org/~davel/test_harness_spike/ JSSH Test Harness Spike]
[http://people.mozilla.org/~davel/test_harness_spike/ JSSH Test Harness Spike]
[[Category:SoftwareTesting]]
[[Category:SoftwareTesting]]
==Patching==
To build on the lastest MOZILLA_1_8_BRANCH I had to make the following changes
<pre>
Index: nsJSSh.cpp
===================================================================
RCS file: /cvsroot/mozilla/extensions/jssh/nsJSSh.cpp,v
retrieving revision 1.3
diff -u -r1.3 nsJSSh.cpp
--- nsJSSh.cpp  31 Mar 2006 04:40:59 -0000  1.3
+++ nsJSSh.cpp  4 Feb 2007 19:14:32 -0000
@@ -40,10 +40,11 @@
#include "nsIJSRuntimeService.h"
#include "nsIServiceManager.h"
#include "nsIXPConnect.h"
+#include "nsMemory.h"
#include "nsIProxyObjectManager.h"
#include "nsIEventQueueService.h"
#include "nsIScriptSecurityManager.h"
-#include "nsDependentString.h"
+#include "nsServiceManagerUtils.h"
#include "nsIIOService.h"
#include "nsNetCID.h"
#include "nsIChannel.h"
Index: nsJSSh.h
===================================================================
RCS file: /cvsroot/mozilla/extensions/jssh/nsJSSh.h,v
retrieving revision 1.3
diff -u -r1.3 nsJSSh.h
--- nsJSSh.h  31 Mar 2006 04:40:59 -0000  1.3
+++ nsJSSh.h  4 Feb 2007 19:14:32 -0000
@@ -47,7 +47,7 @@
#include "nsIJSSh.h"
#include "nsIJSContextStack.h"
#include "nsIPrincipal.h"
-#include "nsString.h"
+#include "nsStringAPI.h"
#include "nsIScriptObjectPrincipal.h"
#include "nsIXPCScriptable.h"
Index: nsJSShServer.cpp
===================================================================
RCS file: /cvsroot/mozilla/extensions/jssh/nsJSShServer.cpp,v
retrieving revision 1.3
diff -u -r1.3 nsJSShServer.cpp
--- nsJSShServer.cpp  31 Mar 2006 04:40:59 -0000  1.3
+++ nsJSShServer.cpp  4 Feb 2007 19:14:32 -0000
@@ -40,6 +40,7 @@
#include "nsNetCID.h"
#include "nsISocketTransport.h"
#include "nsIComponentManager.h"
+#include "nsComponentManagerUtils.h"
#include "nsIInputStream.h"
#include "nsIOutputStream.h"
#include "nsIThread.h"
@@ -197,7 +198,7 @@
    mServerSocket->Close();
  mServerSocket = nsnull;
  mServerPort = 0;
-  mServerStartupURI.Truncate();
+  mServerStartupURI.SetLength(0);
  mServerLoopbackOnly = PR_FALSE;
  return NS_OK;
}
Index: nsJSShServer.h
===================================================================
RCS file: /cvsroot/mozilla/extensions/jssh/nsJSShServer.h,v
retrieving revision 1.3
diff -u -r1.3 nsJSShServer.h
--- nsJSShServer.h  31 Mar 2006 04:40:59 -0000  1.3
+++ nsJSShServer.h  4 Feb 2007 19:14:32 -0000
@@ -42,7 +42,7 @@
#include "nsIJSShServer.h"
#include "nsCOMPtr.h"
#include "nsIServerSocket.h"
-#include "nsString.h"
+#include "nsStringAPI.h"
class nsJSShServer : public nsIJSShServer
{
</pre>
8

edits

Navigation menu