X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2FC%2FTest.C;fp=version2%2Fsrc%2FC%2FTest.C;h=dd3fc6216d3cd7794776fa200b8170fbb65b56c4;hb=0173578905303681df8ea5f3c35b3ead109c8ba8;hp=7b7733ca287a6bbe538548c214f4da302c22dfb9;hpb=b7ed1849727b50e226f3b9d1c432d3071d739368;p=iotcloud.git diff --git a/version2/src/C/Test.C b/version2/src/C/Test.C index 7b7733c..dd3fc62 100644 --- a/version2/src/C/Test.C +++ b/version2/src/C/Test.C @@ -12,14 +12,18 @@ int main(int numargs, char ** args) { Vector * transStatusList = new Vector(); // Setup the 2 clients - Table * t1 = new Table(new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"), new IoTString("reallysecret"), 321, -1); + IoTString *baseurl = new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"); + IoTString * password = new IoTString("reallysecret"); + Table * t1 = new Table(baseurl, password, 321, -1); t1->initTable(); printf("T1 Ready\n"); - Table * t2 = new Table(new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"), new IoTString("reallysecret"), 351, -1); + Table * t2 = new Table(baseurl, password, 351, -1); t2->update(); printf("T2 Ready\n"); + delete baseurl; delete password; + // Make the Keys printf("Setting up keys\n"); for (int i = 0; i < NUMBER_OF_TESTS; i++) {