Unit tests for SmartRest

Dependencies:   C027 SmartRest mbed

Committer:
vwochnik
Date:
Mon Mar 24 10:12:45 2014 +0000
Revision:
0:789029e49ea1
fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vwochnik 0:789029e49ea1 1 #ifndef PARSEDVALUETEST_H
vwochnik 0:789029e49ea1 2 #define PARSEDVALUETEST_H
vwochnik 0:789029e49ea1 3
vwochnik 0:789029e49ea1 4 #include <stddef.h>
vwochnik 0:789029e49ea1 5 #include <stdint.h>
vwochnik 0:789029e49ea1 6 #include "ParsedValue.h"
vwochnik 0:789029e49ea1 7 #include "../mock/BufferedDataSink.h"
vwochnik 0:789029e49ea1 8
vwochnik 0:789029e49ea1 9 class ParsedValueTest
vwochnik 0:789029e49ea1 10 {
vwochnik 0:789029e49ea1 11 public:
vwochnik 0:789029e49ea1 12 ParsedValueTest();
vwochnik 0:789029e49ea1 13
vwochnik 0:789029e49ea1 14 void test();
vwochnik 0:789029e49ea1 15
vwochnik 0:789029e49ea1 16 protected:
vwochnik 0:789029e49ea1 17 void testNull();
vwochnik 0:789029e49ea1 18 void testInteger(const char *string, long expected);
vwochnik 0:789029e49ea1 19 void testFloat(const char *string, double expected);
vwochnik 0:789029e49ea1 20 void testCharacter(const char *string, const char *expected);
vwochnik 0:789029e49ea1 21
vwochnik 0:789029e49ea1 22 private:
vwochnik 0:789029e49ea1 23 BufferedDataSink sink;
vwochnik 0:789029e49ea1 24 };
vwochnik 0:789029e49ea1 25
vwochnik 0:789029e49ea1 26 #endif