Skip to content

Commit 3626e15

Browse files
committed
add template test
1 parent 5806499 commit 3626e15

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/android_https_call.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <stdio.h>
2+
#include "android_https_call.h"
3+
4+
void make_android_https_call(void) {
5+
printf("Basic test running...\n");
6+
}

src/android_https_call.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef ANDROID_HTTPS_CALL_H
2+
#define ANDROID_HTTPS_CALL_H
3+
4+
void make_android_https_call(void);
5+
6+
#endif

test/unit.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "dbutils.h"
2424
#include "cloudsync.h"
2525
#include "cloudsync_private.h"
26+
#include "android_https_call.h"
2627

2728
// declared only if macro CLOUDSYNC_UNITTEST is defined
2829
extern char *OUT_OF_MEMORY_BUFFER;
@@ -3273,6 +3274,11 @@ bool do_test_alter(int nclients, int alter_version, bool print_result, bool clea
32733274
return result;
32743275
}
32753276

3277+
bool do_test_android_https_call(void) {
3278+
make_android_https_call();
3279+
return true;
3280+
}
3281+
32763282
// MARK: -
32773283

32783284
int test_report(const char *description, bool result){
@@ -3341,6 +3347,7 @@ int main(int argc, const char * argv[]) {
33413347
result += test_report("Test Alter Table 1:", do_test_alter(3, 1, print_result, cleanup_databases));
33423348
result += test_report("Test Alter Table 2:", do_test_alter(3, 2, print_result, cleanup_databases));
33433349
result += test_report("Test Alter Table 3:", do_test_alter(3, 3, print_result, cleanup_databases));
3350+
result += test_report("Android HTTPS Call Test:", do_test_android_https_call());
33443351

33453352
finalize:
33463353
printf("\n");

0 commit comments

Comments
 (0)