auto-sync

This commit is contained in:
rusEfi 2014-10-11 08:02:57 -05:00
parent 129f14cbcc
commit 2b3ceb7082
2 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,9 @@ void resetConsoleActions(void);
void helpCommand(void);
void initConsoleLogic(void);
void handleConsoleLine(char *line);
int findEndOfToken(const char *line);
void addConsoleAction(const char *token, Void callback);
void addConsoleActionP(const char *token, VoidPtr callback, void *param);

View File

@ -275,6 +275,10 @@ void testConsoleLogic(void) {
helpCommand();
char * cmd = "he ha";
assertEquals(2, findEndOfToken(cmd));
char *ptr = validateSecureLine(UNKNOWN_COMMAND);
assertEquals(0, strcmp(UNKNOWN_COMMAND, ptr));
assertEquals(10, tokenLength(UNKNOWN_COMMAND));