Skip to content

Commit

Permalink
[test][libdotnet] refs #8 Added update submodule and remove test sha2…
Browse files Browse the repository at this point in the history
…56xor
  • Loading branch information
Maykel Arias Torres committed Oct 13, 2018
1 parent 8de0b15 commit c808036
Show file tree
Hide file tree
Showing 9 changed files with 211 additions and 284 deletions.
59 changes: 59 additions & 0 deletions LibskycoinNet/skycoin/InputTestData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class InputTestData : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal InputTestData(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestData obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~InputTestData() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_InputTestData(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public GoSlice Hashes {
set {
skycoinPINVOKE.set_InputTestData_Hashes(swigCPtr, GoSlice.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestData_Hashes(swigCPtr);
GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false);
return ret;
}
}

public InputTestData() : this(skycoinPINVOKE.new_InputTestData(), true) {
}

}

}
59 changes: 59 additions & 0 deletions LibskycoinNet/skycoin/InputTestDataJSON.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class InputTestDataJSON : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal InputTestDataJSON(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestDataJSON obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~InputTestDataJSON() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_InputTestDataJSON(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public GoSlice Hashes {
set {
skycoinPINVOKE.set_InputTestDataJSON_Hashes(swigCPtr, GoSlice.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestDataJSON_Hashes(swigCPtr);
GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false);
return ret;
}
}

public InputTestDataJSON() : this(skycoinPINVOKE.new_InputTestDataJSON(), true) {
}

}

}
92 changes: 92 additions & 0 deletions LibskycoinNet/skycoin/KeysTestData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class KeysTestData : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal KeysTestData(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeysTestData obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~KeysTestData() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_KeysTestData(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public cipher__Address Address {
set {
skycoinPINVOKE.set_KeysTestData_Address(swigCPtr, cipher__Address.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Address(swigCPtr);
cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false);
return ret;
}
}

public SWIGTYPE_p_GoUint8_ Secret {
set {
skycoinPINVOKE.set_KeysTestData_Secret(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Secret(swigCPtr);
SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false);
return ret;
}
}

public SWIGTYPE_p_GoUint8_ Public {
set {
skycoinPINVOKE.set_KeysTestData_Public(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Public(swigCPtr);
SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false);
return ret;
}
}

public GoSlice Signatures {
set {
skycoinPINVOKE.set_KeysTestData_Signatures(swigCPtr, GoSlice.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Signatures(swigCPtr);
GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false);
return ret;
}
}

public KeysTestData() : this(skycoinPINVOKE.new_KeysTestData(), true) {
}

}

}
Empty file.
1 change: 0 additions & 1 deletion LibskycoinNet/skycoin/skycoinnet_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString
#define SWIG_FILE_WITH_INIT
#include "libskycoin.h"
#include "swig.h"
// #include "base64.h"


void destroy_cipher_SecKeys(cipher_SecKeys* p){
Expand Down
2 changes: 0 additions & 2 deletions LibskycoinNetTest/LibskycoinNetTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@
<Compile Include="check_cipher_hash.cs" />
<Compile Include="check_cipher_sig.cs" />
<Compile Include="check_cipher_ec.cs" />
<Compile Include="check_cipher_sha256xor.cs" />
<Compile Include="check_cipher_field.cs" />
<Compile Include="check_cipher_bip39.cs" />
<Compile Include="check_cipher_bitcoin.cs" />
<Compile Include="check_coin_math.cs" />
<!-- <Compile Include="check_coin_coin.cs" /> -->
<Compile Include="check_coin_transactions.cs" />
<Compile Include="check_coin_outputs.cs" />
<Compile Include="check_coin_block.cs" />
Expand Down
Loading

0 comments on commit c808036

Please sign in to comment.